Class: GetApisAPIIDSchemasSchemaIDFilesFilePathResponse422
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetApisAPIIDSchemasSchemaIDFilesFilePathResponse422
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
4948 4949 4950 4951 4952 4953 4954 4955 |
# File 'lib/schemas.rb', line 4948 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], title: d["title"], get_apis_api_id_schemas_schema_id_files_file_path_response422_type: d["type"], ) end |
.from_json!(json) ⇒ Object
4957 4958 4959 |
# File 'lib/schemas.rb', line 4957 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
4961 4962 4963 4964 4965 4966 4967 |
# File 'lib/schemas.rb', line 4961 def to_dynamic { "detail" => detail, "title" => title, "type" => get_apis_api_id_schemas_schema_id_files_file_path_response422_type, } end |
#to_json(options = nil) ⇒ Object
4969 4970 4971 |
# File 'lib/schemas.rb', line 4969 def to_json( = nil) JSON.generate(to_dynamic, ) end |