Class: PutCollectionsCollectionIDRequestsRequestIDResponse404
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutCollectionsCollectionIDRequestsRequestIDResponse404
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
30489 30490 30491 30492 30493 30494 |
# File 'lib/schemas.rb', line 30489 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? PutCollectionsCollectionIDRequestsRequestIDResponse404Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
30496 30497 30498 |
# File 'lib/schemas.rb', line 30496 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
30500 30501 30502 30503 30504 |
# File 'lib/schemas.rb', line 30500 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
30506 30507 30508 |
# File 'lib/schemas.rb', line 30506 def to_json( = nil) JSON.generate(to_dynamic, ) end |