Class: GetApisAPIIDSchemasSchemaIDResponse401
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetApisAPIIDSchemasSchemaIDResponse401
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 |
# File 'lib/schemas.rb', line 5376 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_response401_type: d["type"], ) end |
.from_json!(json) ⇒ Object
5387 5388 5389 |
# File 'lib/schemas.rb', line 5387 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
5391 5392 5393 5394 5395 5396 5397 5398 5399 |
# File 'lib/schemas.rb', line 5391 def to_dynamic { "detail" => detail, "instance" => instance, "status" => status, "title" => title, "type" => get_apis_api_id_schemas_schema_id_response401_type, } end |
#to_json(options = nil) ⇒ Object
5401 5402 5403 |
# File 'lib/schemas.rb', line 5401 def to_json( = nil) JSON.generate(to_dynamic, ) end |