Class: PatchCollectionsCollectionIDResponse403
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PatchCollectionsCollectionIDResponse403
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
18186 18187 18188 18189 18190 18191 |
# File 'lib/schemas.rb', line 18186 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? PatchCollectionsCollectionIDResponse403Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
18193 18194 18195 |
# File 'lib/schemas.rb', line 18193 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
18197 18198 18199 18200 18201 |
# File 'lib/schemas.rb', line 18197 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
18203 18204 18205 |
# File 'lib/schemas.rb', line 18203 def to_json( = nil) JSON.generate(to_dynamic, ) end |