Class: GetCollectionsCollectionIDRequestsRequestIDResponse404
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetCollectionsCollectionIDRequestsRequestIDResponse404
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
7889 7890 7891 7892 7893 7894 |
# File 'lib/schemas.rb', line 7889 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? GetCollectionsCollectionIDRequestsRequestIDResponse404Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
7896 7897 7898 |
# File 'lib/schemas.rb', line 7896 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
7900 7901 7902 7903 7904 |
# File 'lib/schemas.rb', line 7900 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
7906 7907 7908 |
# File 'lib/schemas.rb', line 7906 def to_json( = nil) JSON.generate(to_dynamic, ) end |