Class: PutCollectionsCollectionIDResponsesResponseIDResponse401Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutCollectionsCollectionIDResponsesResponseIDResponse401Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
31276 31277 31278 31279 31280 31281 31282 31283 |
# File 'lib/schemas.rb', line 31276 def self.from_dynamic!(d) d = Types::Hash[d] new( details: d["details"] ? PutCollectionsCollectionIDResponsesResponseIDResponse401ErrorDetails.from_dynamic!(d["details"]) : nil, message: d["message"], put_collections_collection_id_responses_response_id_response401_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
31285 31286 31287 |
# File 'lib/schemas.rb', line 31285 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
31289 31290 31291 31292 31293 31294 31295 |
# File 'lib/schemas.rb', line 31289 def to_dynamic { "details" => details&.to_dynamic, "message" => , "name" => put_collections_collection_id_responses_response_id_response401_error_name, } end |
#to_json(options = nil) ⇒ Object
31297 31298 31299 |
# File 'lib/schemas.rb', line 31297 def to_json( = nil) JSON.generate(to_dynamic, ) end |