Class: PostCollectionsCollectionIDRequestsResponse400Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostCollectionsCollectionIDRequestsResponse400Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
21152 21153 21154 21155 21156 21157 21158 21159 |
# File 'lib/schemas.rb', line 21152 def self.from_dynamic!(d) d = Types::Hash[d] new( details: d["details"] ? PostCollectionsCollectionIDRequestsResponse400ErrorDetails.from_dynamic!(d["details"]) : nil, message: d["message"], post_collections_collection_id_requests_response400_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
21161 21162 21163 |
# File 'lib/schemas.rb', line 21161 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
21165 21166 21167 21168 21169 21170 21171 |
# File 'lib/schemas.rb', line 21165 def to_dynamic { "details" => details&.to_dynamic, "message" => , "name" => post_collections_collection_id_requests_response400_error_name, } end |
#to_json(options = nil) ⇒ Object
21173 21174 21175 |
# File 'lib/schemas.rb', line 21173 def to_json( = nil) JSON.generate(to_dynamic, ) end |