Class: DeleteCollectionsCollectionIDRequestsRequestIDResponse401Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- DeleteCollectionsCollectionIDRequestsRequestIDResponse401Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
1121 1122 1123 1124 1125 1126 1127 1128 |
# File 'lib/schemas.rb', line 1121 def self.from_dynamic!(d) d = Types::Hash[d] new( details: d["details"] ? DeleteCollectionsCollectionIDRequestsRequestIDResponse401ErrorDetails.from_dynamic!(d["details"]) : nil, message: d["message"], delete_collections_collection_id_requests_request_id_response401_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
1130 1131 1132 |
# File 'lib/schemas.rb', line 1130 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
1134 1135 1136 1137 1138 1139 1140 |
# File 'lib/schemas.rb', line 1134 def to_dynamic { "details" => details&.to_dynamic, "message" => , "name" => delete_collections_collection_id_requests_request_id_response401_error_name, } end |
#to_json(options = nil) ⇒ Object
1142 1143 1144 |
# File 'lib/schemas.rb', line 1142 def to_json( = nil) JSON.generate(to_dynamic, ) end |