Class: PostCollectionsCollectionIDFoldersResponse400Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostCollectionsCollectionIDFoldersResponse400Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
20772 20773 20774 20775 20776 20777 20778 20779 |
# File 'lib/schemas.rb', line 20772 def self.from_dynamic!(d) d = Types::Hash[d] new( details: d["details"] ? PostCollectionsCollectionIDFoldersResponse400ErrorDetails.from_dynamic!(d["details"]) : nil, message: d["message"], post_collections_collection_id_folders_response400_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
20781 20782 20783 |
# File 'lib/schemas.rb', line 20781 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
20785 20786 20787 20788 20789 20790 20791 |
# File 'lib/schemas.rb', line 20785 def to_dynamic { "details" => details&.to_dynamic, "message" => , "name" => post_collections_collection_id_folders_response400_error_name, } end |
#to_json(options = nil) ⇒ Object
20793 20794 20795 |
# File 'lib/schemas.rb', line 20793 def to_json( = nil) JSON.generate(to_dynamic, ) end |