Class: PutApisAPIIDResponse422
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutApisAPIIDResponse422
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
28496 28497 28498 28499 28500 28501 28502 28503 |
# File 'lib/schemas.rb', line 28496 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], title: d["title"], put_apis_api_id_response422_type: d["type"], ) end |
.from_json!(json) ⇒ Object
28505 28506 28507 |
# File 'lib/schemas.rb', line 28505 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
28509 28510 28511 28512 28513 28514 28515 |
# File 'lib/schemas.rb', line 28509 def to_dynamic { "detail" => detail, "title" => title, "type" => put_apis_api_id_response422_type, } end |
#to_json(options = nil) ⇒ Object
28517 28518 28519 |
# File 'lib/schemas.rb', line 28517 def to_json( = nil) JSON.generate(to_dynamic, ) end |