Class: PutCollectionsCollectionIDRequestsRequestIDResponse404Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutCollectionsCollectionIDRequestsRequestIDResponse404Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
30460 30461 30462 30463 30464 30465 30466 30467 |
# File 'lib/schemas.rb', line 30460 def self.from_dynamic!(d) d = Types::Hash[d] new( details: d["details"] ? PutCollectionsCollectionIDRequestsRequestIDResponse404ErrorDetails.from_dynamic!(d["details"]) : nil, message: d["message"], put_collections_collection_id_requests_request_id_response404_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
30469 30470 30471 |
# File 'lib/schemas.rb', line 30469 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
30473 30474 30475 30476 30477 30478 30479 |
# File 'lib/schemas.rb', line 30473 def to_dynamic { "details" => details&.to_dynamic, "message" => , "name" => put_collections_collection_id_requests_request_id_response404_error_name, } end |
#to_json(options = nil) ⇒ Object
30481 30482 30483 |
# File 'lib/schemas.rb', line 30481 def to_json( = nil) JSON.generate(to_dynamic, ) end |