Class: PutEnvironmentsEnvironmentIDResponse500
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutEnvironmentsEnvironmentIDResponse500
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
32383 32384 32385 32386 32387 32388 |
# File 'lib/schemas.rb', line 32383 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? PutEnvironmentsEnvironmentIDResponse500Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
32390 32391 32392 |
# File 'lib/schemas.rb', line 32390 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
32394 32395 32396 32397 32398 |
# File 'lib/schemas.rb', line 32394 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
32400 32401 32402 |
# File 'lib/schemas.rb', line 32400 def to_json( = nil) JSON.generate(to_dynamic, ) end |