Class: PutApisAPIIDSchemasSchemaIDFilesFilePathResponse400
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutApisAPIIDSchemasSchemaIDFilesFilePathResponse400
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
28692 28693 28694 28695 28696 28697 28698 28699 |
# File 'lib/schemas.rb', line 28692 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], title: d["title"], put_apis_api_id_schemas_schema_id_files_file_path_response400_type: d["type"], ) end |
.from_json!(json) ⇒ Object
28701 28702 28703 |
# File 'lib/schemas.rb', line 28701 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
28705 28706 28707 28708 28709 28710 28711 |
# File 'lib/schemas.rb', line 28705 def to_dynamic { "detail" => detail, "title" => title, "type" => put_apis_api_id_schemas_schema_id_files_file_path_response400_type, } end |
#to_json(options = nil) ⇒ Object
28713 28714 28715 |
# File 'lib/schemas.rb', line 28713 def to_json( = nil) JSON.generate(to_dynamic, ) end |