Class: PostApisAPIIDSchemasResponse400
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostApisAPIIDSchemasResponse400
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
19671 19672 19673 19674 19675 19676 19677 19678 |
# File 'lib/schemas.rb', line 19671 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], title: d["title"], post_apis_api_id_schemas_response400_type: d["type"], ) end |
.from_json!(json) ⇒ Object
19680 19681 19682 |
# File 'lib/schemas.rb', line 19680 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
19684 19685 19686 19687 19688 19689 19690 |
# File 'lib/schemas.rb', line 19684 def to_dynamic { "detail" => detail, "title" => title, "type" => post_apis_api_id_schemas_response400_type, } end |
#to_json(options = nil) ⇒ Object
19692 19693 19694 |
# File 'lib/schemas.rb', line 19692 def to_json( = nil) JSON.generate(to_dynamic, ) end |