Class: PostCollectionsCollectionIDRequestsResponse400
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostCollectionsCollectionIDRequestsResponse400
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
21181 21182 21183 21184 21185 21186 |
# File 'lib/schemas.rb', line 21181 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? PostCollectionsCollectionIDRequestsResponse400Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
21188 21189 21190 |
# File 'lib/schemas.rb', line 21188 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
21192 21193 21194 21195 21196 |
# File 'lib/schemas.rb', line 21192 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
21198 21199 21200 |
# File 'lib/schemas.rb', line 21198 def to_json( = nil) JSON.generate(to_dynamic, ) end |