Class: PostCollectionsCollectionIDFoldersResponse401Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostCollectionsCollectionIDFoldersResponse401Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
20871 20872 20873 20874 20875 20876 20877 20878 |
# File 'lib/schemas.rb', line 20871 def self.from_dynamic!(d) d = Types::Hash[d] new( details: d["details"] ? PostCollectionsCollectionIDFoldersResponse401ErrorDetails.from_dynamic!(d["details"]) : nil, message: d["message"], post_collections_collection_id_folders_response401_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
20880 20881 20882 |
# File 'lib/schemas.rb', line 20880 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
20884 20885 20886 20887 20888 20889 20890 |
# File 'lib/schemas.rb', line 20884 def to_dynamic { "details" => details&.to_dynamic, "message" => , "name" => post_collections_collection_id_folders_response401_error_name, } end |
#to_json(options = nil) ⇒ Object
20892 20893 20894 |
# File 'lib/schemas.rb', line 20892 def to_json( = nil) JSON.generate(to_dynamic, ) end |