Class: DeleteMocksMockIDResponse500
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- DeleteMocksMockIDResponse500
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
2478 2479 2480 2481 2482 2483 |
# File 'lib/schemas.rb', line 2478 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? DeleteMocksMockIDResponse500Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
2485 2486 2487 |
# File 'lib/schemas.rb', line 2485 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
2489 2490 2491 2492 2493 |
# File 'lib/schemas.rb', line 2489 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
2495 2496 2497 |
# File 'lib/schemas.rb', line 2495 def to_json( = nil) JSON.generate(to_dynamic, ) end |