Class: GetCollectionsCollectionIDFoldersFolderIDResponse404
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetCollectionsCollectionIDFoldersFolderIDResponse404
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
7558 7559 7560 7561 7562 7563 |
# File 'lib/schemas.rb', line 7558 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? GetCollectionsCollectionIDFoldersFolderIDResponse404Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
7565 7566 7567 |
# File 'lib/schemas.rb', line 7565 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
7569 7570 7571 7572 7573 |
# File 'lib/schemas.rb', line 7569 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
7575 7576 7577 |
# File 'lib/schemas.rb', line 7575 def to_json( = nil) JSON.generate(to_dynamic, ) end |