Class: PutEnvironmentsEnvironmentIDResponse401
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutEnvironmentsEnvironmentIDResponse401
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
32294 32295 32296 32297 32298 32299 |
# File 'lib/schemas.rb', line 32294 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? PutEnvironmentsEnvironmentIDResponse401Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
32301 32302 32303 |
# File 'lib/schemas.rb', line 32301 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
32305 32306 32307 32308 32309 |
# File 'lib/schemas.rb', line 32305 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
32311 32312 32313 |
# File 'lib/schemas.rb', line 32311 def to_json( = nil) JSON.generate(to_dynamic, ) end |