Class: PostCollectionsCollectionIDFoldersResponse400
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostCollectionsCollectionIDFoldersResponse400
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
20801 20802 20803 20804 20805 20806 |
# File 'lib/schemas.rb', line 20801 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? PostCollectionsCollectionIDFoldersResponse400Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
20808 20809 20810 |
# File 'lib/schemas.rb', line 20808 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
20812 20813 20814 20815 20816 |
# File 'lib/schemas.rb', line 20812 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
20818 20819 20820 |
# File 'lib/schemas.rb', line 20818 def to_json( = nil) JSON.generate(to_dynamic, ) end |