Class: DeleteApisAPIIDVersionsVersionIDResponse400
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- DeleteApisAPIIDVersionsVersionIDResponse400
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
510 511 512 513 514 515 |
# File 'lib/schemas.rb', line 510 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? DeleteApisAPIIDVersionsVersionIDResponse400Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
517 518 519 |
# File 'lib/schemas.rb', line 517 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
521 522 523 524 525 |
# File 'lib/schemas.rb', line 521 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
527 528 529 |
# File 'lib/schemas.rb', line 527 def to_json( = nil) JSON.generate(to_dynamic, ) end |