Class: GetApisAPIIDSchemasSchemaIDFilesResponse401
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetApisAPIIDSchemasSchemaIDFilesResponse401
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 |
# File 'lib/schemas.rb', line 5181 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], instance: d["instance"], status: d["status"], title: d["title"], get_apis_api_id_schemas_schema_id_files_response401_type: d["type"], ) end |
.from_json!(json) ⇒ Object
5192 5193 5194 |
# File 'lib/schemas.rb', line 5192 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
5196 5197 5198 5199 5200 5201 5202 5203 5204 |
# File 'lib/schemas.rb', line 5196 def to_dynamic { "detail" => detail, "instance" => instance, "status" => status, "title" => title, "type" => get_apis_api_id_schemas_schema_id_files_response401_type, } end |
#to_json(options = nil) ⇒ Object
5206 5207 5208 |
# File 'lib/schemas.rb', line 5206 def to_json( = nil) JSON.generate(to_dynamic, ) end |