Class: PutNetworkPrivateNetworkEntityRequestRequestIDResponseRequestItemElement
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutNetworkPrivateNetworkEntityRequestRequestIDResponseRequestItemElement
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
33953 33954 33955 33956 33957 33958 33959 33960 33961 33962 33963 |
# File 'lib/schemas.rb', line 33953 def self.from_dynamic!(d) d = Types::Hash[d] new( created_at: d["createdAt"], created_by: d["createdBy"], id: d["id"], put_network_private_network_entity_request_request_id_response_request_item_element_name: d["name"], summary: d["summary"], put_network_private_network_entity_request_request_id_response_request_item_element_type: d["type"], ) end |
.from_json!(json) ⇒ Object
33965 33966 33967 |
# File 'lib/schemas.rb', line 33965 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
33969 33970 33971 33972 33973 33974 33975 33976 33977 33978 |
# File 'lib/schemas.rb', line 33969 def to_dynamic { "createdAt" => created_at, "createdBy" => created_by, "id" => id, "name" => put_network_private_network_entity_request_request_id_response_request_item_element_name, "summary" => summary, "type" => put_network_private_network_entity_request_request_id_response_request_item_element_type, } end |
#to_json(options = nil) ⇒ Object
33980 33981 33982 |
# File 'lib/schemas.rb', line 33980 def to_json( = nil) JSON.generate(to_dynamic, ) end |