Class: PutCollectionsCollectionIDResponsesResponseIDResponse400Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutCollectionsCollectionIDResponsesResponseIDResponse400Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
31177 31178 31179 31180 31181 31182 31183 31184 |
# File 'lib/schemas.rb', line 31177 def self.from_dynamic!(d) d = Types::Hash[d] new( details: d["details"] ? PutCollectionsCollectionIDResponsesResponseIDResponse400ErrorDetails.from_dynamic!(d["details"]) : nil, message: d["message"], put_collections_collection_id_responses_response_id_response400_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
31186 31187 31188 |
# File 'lib/schemas.rb', line 31186 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
31190 31191 31192 31193 31194 31195 31196 |
# File 'lib/schemas.rb', line 31190 def to_dynamic { "details" => details&.to_dynamic, "message" => , "name" => put_collections_collection_id_responses_response_id_response400_error_name, } end |
#to_json(options = nil) ⇒ Object
31198 31199 31200 |
# File 'lib/schemas.rb', line 31198 def to_json( = nil) JSON.generate(to_dynamic, ) end |