Class: DeleteMocksMockIDResponse400
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- DeleteMocksMockIDResponse400
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
2270 2271 2272 2273 2274 2275 |
# File 'lib/schemas.rb', line 2270 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? DeleteMocksMockIDResponse400Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
2277 2278 2279 |
# File 'lib/schemas.rb', line 2277 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
2281 2282 2283 2284 2285 |
# File 'lib/schemas.rb', line 2281 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
2287 2288 2289 |
# File 'lib/schemas.rb', line 2287 def to_json( = nil) JSON.generate(to_dynamic, ) end |