Class: DeleteApisAPIIDSchemasSchemaIDFilesFilePathResponse404
- Inherits:
- 
      Dry::Struct
      
        - Object
- Dry::Struct
- DeleteApisAPIIDSchemasSchemaIDFilesFilePathResponse404
 
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
| 373 374 375 376 377 378 379 380 | # File 'lib/schemas.rb', line 373 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_response404_type: d["type"], ) end | 
.from_json!(json) ⇒ Object
| 382 383 384 | # File 'lib/schemas.rb', line 382 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end | 
Instance Method Details
#to_dynamic ⇒ Object
| 386 387 388 389 390 391 392 | # File 'lib/schemas.rb', line 386 def to_dynamic { "detail" => detail, "title" => title, "type" => delete_apis_api_id_schemas_schema_id_files_file_path_response404_type, } end | 
#to_json(options = nil) ⇒ Object
| 394 395 396 | # File 'lib/schemas.rb', line 394 def to_json( = nil) JSON.generate(to_dynamic, ) end |