Class: GetCollectionsCollectionIDFoldersFolderIDResponse404Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetCollectionsCollectionIDFoldersFolderIDResponse404Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
7529 7530 7531 7532 7533 7534 7535 7536 |
# File 'lib/schemas.rb', line 7529 def self.from_dynamic!(d) d = Types::Hash[d] new( details: d["details"] ? GetCollectionsCollectionIDFoldersFolderIDResponse404ErrorDetails.from_dynamic!(d["details"]) : nil, message: d["message"], get_collections_collection_id_folders_folder_id_response404_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
7538 7539 7540 |
# File 'lib/schemas.rb', line 7538 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
7542 7543 7544 7545 7546 7547 7548 |
# File 'lib/schemas.rb', line 7542 def to_dynamic { "details" => details&.to_dynamic, "message" => , "name" => get_collections_collection_id_folders_folder_id_response404_error_name, } end |
#to_json(options = nil) ⇒ Object
7550 7551 7552 |
# File 'lib/schemas.rb', line 7550 def to_json( = nil) JSON.generate(to_dynamic, ) end |