Class: PutCollectionsCollectionIDFoldersFolderIDResponse404
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutCollectionsCollectionIDFoldersFolderIDResponse404
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
29998 29999 30000 30001 30002 30003 |
# File 'lib/schemas.rb', line 29998 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? PutCollectionsCollectionIDFoldersFolderIDResponse404Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
30005 30006 30007 |
# File 'lib/schemas.rb', line 30005 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
30009 30010 30011 30012 30013 |
# File 'lib/schemas.rb', line 30009 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
30015 30016 30017 |
# File 'lib/schemas.rb', line 30015 def to_json( = nil) JSON.generate(to_dynamic, ) end |