Class: GetApisAPIIDSchemasSchemaIDFilesResponse404
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetApisAPIIDSchemasSchemaIDFilesResponse404
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
5222 5223 5224 5225 5226 5227 5228 5229 |
# File 'lib/schemas.rb', line 5222 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], title: d["title"], get_apis_api_id_schemas_schema_id_files_response404_type: d["type"], ) end |
.from_json!(json) ⇒ Object
5231 5232 5233 |
# File 'lib/schemas.rb', line 5231 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
5235 5236 5237 5238 5239 5240 5241 |
# File 'lib/schemas.rb', line 5235 def to_dynamic { "detail" => detail, "title" => title, "type" => get_apis_api_id_schemas_schema_id_files_response404_type, } end |
#to_json(options = nil) ⇒ Object
5243 5244 5245 |
# File 'lib/schemas.rb', line 5243 def to_json( = nil) JSON.generate(to_dynamic, ) end |