Class: PutCollectionsCollectionIDResponsesResponseIDResponse400
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutCollectionsCollectionIDResponsesResponseIDResponse400
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
31206 31207 31208 31209 31210 31211 |
# File 'lib/schemas.rb', line 31206 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? PutCollectionsCollectionIDResponsesResponseIDResponse400Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
31213 31214 31215 |
# File 'lib/schemas.rb', line 31213 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
31217 31218 31219 31220 31221 |
# File 'lib/schemas.rb', line 31217 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
31223 31224 31225 |
# File 'lib/schemas.rb', line 31223 def to_json( = nil) JSON.generate(to_dynamic, ) end |