Class: PostApisAPIIDSchemasResponse422
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostApisAPIIDSchemasResponse422
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
19839 19840 19841 19842 19843 19844 19845 19846 |
# File 'lib/schemas.rb', line 19839 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], title: d["title"], post_apis_api_id_schemas_response422_type: d["type"], ) end |
.from_json!(json) ⇒ Object
19848 19849 19850 |
# File 'lib/schemas.rb', line 19848 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
19852 19853 19854 19855 19856 19857 19858 |
# File 'lib/schemas.rb', line 19852 def to_dynamic { "detail" => detail, "title" => title, "type" => post_apis_api_id_schemas_response422_type, } end |
#to_json(options = nil) ⇒ Object
19860 19861 19862 |
# File 'lib/schemas.rb', line 19860 def to_json( = nil) JSON.generate(to_dynamic, ) end |