Class: PostCollectionsCollectionIDFoldersResponse401
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostCollectionsCollectionIDFoldersResponse401
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
20900 20901 20902 20903 20904 20905 |
# File 'lib/schemas.rb', line 20900 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? PostCollectionsCollectionIDFoldersResponse401Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
20907 20908 20909 |
# File 'lib/schemas.rb', line 20907 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
20911 20912 20913 20914 20915 |
# File 'lib/schemas.rb', line 20911 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
20917 20918 20919 |
# File 'lib/schemas.rb', line 20917 def to_json( = nil) JSON.generate(to_dynamic, ) end |