Class: DeleteApisAPIIDSchemasSchemaIDFilesFilePathResponse422
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- DeleteApisAPIIDSchemasSchemaIDFilesFilePathResponse422
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
410 411 412 413 414 415 416 417 |
# File 'lib/schemas.rb', line 410 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], title: d["title"], delete_apis_api_id_schemas_schema_id_files_file_path_response422_type: d["type"], ) end |
.from_json!(json) ⇒ Object
419 420 421 |
# File 'lib/schemas.rb', line 419 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
423 424 425 426 427 428 429 |
# File 'lib/schemas.rb', line 423 def to_dynamic { "detail" => detail, "title" => title, "type" => delete_apis_api_id_schemas_schema_id_files_file_path_response422_type, } end |
#to_json(options = nil) ⇒ Object
431 432 433 |
# File 'lib/schemas.rb', line 431 def to_json( = nil) JSON.generate(to_dynamic, ) end |