Class: GetMocksMockIDServerResponsesResponse500
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetMocksMockIDServerResponsesResponse500
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
11666 11667 11668 11669 11670 11671 |
# File 'lib/schemas.rb', line 11666 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? GetMocksMockIDServerResponsesResponse500Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
11673 11674 11675 |
# File 'lib/schemas.rb', line 11673 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
11677 11678 11679 11680 11681 |
# File 'lib/schemas.rb', line 11677 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
11683 11684 11685 |
# File 'lib/schemas.rb', line 11683 def to_json( = nil) JSON.generate(to_dynamic, ) end |