Class: PatchCollectionsCollectionIDResponse404
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PatchCollectionsCollectionIDResponse404
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
18280 18281 18282 18283 18284 18285 |
# File 'lib/schemas.rb', line 18280 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? PatchCollectionsCollectionIDResponse404Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
18287 18288 18289 |
# File 'lib/schemas.rb', line 18287 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
18291 18292 18293 18294 18295 |
# File 'lib/schemas.rb', line 18291 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
18297 18298 18299 |
# File 'lib/schemas.rb', line 18297 def to_json( = nil) JSON.generate(to_dynamic, ) end |