Class: DeleteApisAPIIDVersionsVersionIDResponse400Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- DeleteApisAPIIDVersionsVersionIDResponse400Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
481 482 483 484 485 486 487 |
# File 'lib/schemas.rb', line 481 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], delete_apis_api_id_versions_version_id_response400_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
489 490 491 |
# File 'lib/schemas.rb', line 489 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
493 494 495 496 497 498 |
# File 'lib/schemas.rb', line 493 def to_dynamic { "message" => , "name" => delete_apis_api_id_versions_version_id_response400_error_name, } end |
#to_json(options = nil) ⇒ Object
500 501 502 |
# File 'lib/schemas.rb', line 500 def to_json( = nil) JSON.generate(to_dynamic, ) end |