Class: PostCollectionsCollectionIDResponsesResponse401
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostCollectionsCollectionIDResponsesResponse401
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
21640 21641 21642 21643 21644 21645 |
# File 'lib/schemas.rb', line 21640 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? PostCollectionsCollectionIDResponsesResponse401Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
21647 21648 21649 |
# File 'lib/schemas.rb', line 21647 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
21651 21652 21653 21654 21655 |
# File 'lib/schemas.rb', line 21651 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
21657 21658 21659 |
# File 'lib/schemas.rb', line 21657 def to_json( = nil) JSON.generate(to_dynamic, ) end |