Class: PutCollectionsCollectionIDRequestsRequestIDResponse400
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutCollectionsCollectionIDRequestsRequestIDResponse400
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
30291 30292 30293 30294 30295 30296 |
# File 'lib/schemas.rb', line 30291 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? PutCollectionsCollectionIDRequestsRequestIDResponse400Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
30298 30299 30300 |
# File 'lib/schemas.rb', line 30298 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
30302 30303 30304 30305 30306 |
# File 'lib/schemas.rb', line 30302 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
30308 30309 30310 |
# File 'lib/schemas.rb', line 30308 def to_json( = nil) JSON.generate(to_dynamic, ) end |