Class: DeleteApisAPIIDSchemasSchemaIDFilesFilePathResponse400
- Inherits:
- 
      Dry::Struct
      
        - Object
- Dry::Struct
- DeleteApisAPIIDSchemasSchemaIDFilesFilePathResponse400
 
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
| 252 253 254 255 256 257 258 259 | # File 'lib/schemas.rb', line 252 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_response400_type: d["type"], ) end | 
.from_json!(json) ⇒ Object
| 261 262 263 | # File 'lib/schemas.rb', line 261 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end | 
Instance Method Details
#to_dynamic ⇒ Object
| 265 266 267 268 269 270 271 | # File 'lib/schemas.rb', line 265 def to_dynamic { "detail" => detail, "title" => title, "type" => delete_apis_api_id_schemas_schema_id_files_file_path_response400_type, } end | 
#to_json(options = nil) ⇒ Object
| 273 274 275 | # File 'lib/schemas.rb', line 273 def to_json( = nil) JSON.generate(to_dynamic, ) end |