Class: PutCollectionsCollectionIDResponsesResponseIDBody
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutCollectionsCollectionIDResponsesResponseIDBody
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
31009 31010 31011 31012 31013 31014 31015 |
# File 'lib/schemas.rb', line 31009 def self.from_dynamic!(d) d = Types::Hash[d] new( put_collections_collection_id_responses_response_id_body_name: d["name"], response_code: d["responseCode"] ? PutCollectionsCollectionIDResponsesResponseIDBodyResponseCode.from_dynamic!(d["responseCode"]) : nil, ) end |
.from_json!(json) ⇒ Object
31017 31018 31019 |
# File 'lib/schemas.rb', line 31017 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
31021 31022 31023 31024 31025 31026 |
# File 'lib/schemas.rb', line 31021 def to_dynamic { "name" => put_collections_collection_id_responses_response_id_body_name, "responseCode" => response_code&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
31028 31029 31030 |
# File 'lib/schemas.rb', line 31028 def to_json( = nil) JSON.generate(to_dynamic, ) end |