Class: GetMocksMockIDCallLogsResponse404
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetMocksMockIDCallLogsResponse404
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
11005 11006 11007 11008 11009 11010 |
# File 'lib/schemas.rb', line 11005 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? GetMocksMockIDCallLogsResponse404Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
11012 11013 11014 |
# File 'lib/schemas.rb', line 11012 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
11016 11017 11018 11019 11020 |
# File 'lib/schemas.rb', line 11016 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
11022 11023 11024 |
# File 'lib/schemas.rb', line 11022 def to_json( = nil) JSON.generate(to_dynamic, ) end |