Class: PostApisAPIIDCollectionsResponse500
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostApisAPIIDCollectionsResponse500
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
19408 19409 19410 19411 19412 19413 19414 19415 |
# File 'lib/schemas.rb', line 19408 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], title: d["title"], post_apis_api_id_collections_response500_type: d["type"], ) end |
.from_json!(json) ⇒ Object
19417 19418 19419 |
# File 'lib/schemas.rb', line 19417 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
19421 19422 19423 19424 19425 19426 19427 |
# File 'lib/schemas.rb', line 19421 def to_dynamic { "detail" => detail, "title" => title, "type" => post_apis_api_id_collections_response500_type, } end |
#to_json(options = nil) ⇒ Object
19429 19430 19431 |
# File 'lib/schemas.rb', line 19429 def to_json( = nil) JSON.generate(to_dynamic, ) end |