Class: PutCollectionsCollectionIDFoldersFolderIDResponse400Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutCollectionsCollectionIDFoldersFolderIDResponse400Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
29771 29772 29773 29774 29775 29776 29777 29778 |
# File 'lib/schemas.rb', line 29771 def self.from_dynamic!(d) d = Types::Hash[d] new( details: d["details"] ? PutCollectionsCollectionIDFoldersFolderIDResponse400ErrorDetails.from_dynamic!(d["details"]) : nil, message: d["message"], put_collections_collection_id_folders_folder_id_response400_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
29780 29781 29782 |
# File 'lib/schemas.rb', line 29780 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
29784 29785 29786 29787 29788 29789 29790 |
# File 'lib/schemas.rb', line 29784 def to_dynamic { "details" => details&.to_dynamic, "message" => , "name" => put_collections_collection_id_folders_folder_id_response400_error_name, } end |
#to_json(options = nil) ⇒ Object
29792 29793 29794 |
# File 'lib/schemas.rb', line 29792 def to_json( = nil) JSON.generate(to_dynamic, ) end |