Class: PostEnvironmentsResponse500
- Inherits:
- 
      Dry::Struct
      
        - Object
- Dry::Struct
- PostEnvironmentsResponse500
 
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
| 23456 23457 23458 23459 23460 23461 | # File 'lib/schemas.rb', line 23456 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? PostEnvironmentsResponse500Error.from_dynamic!(d["error"]) : nil, ) end | 
.from_json!(json) ⇒ Object
| 23463 23464 23465 | # File 'lib/schemas.rb', line 23463 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end | 
Instance Method Details
#to_dynamic ⇒ Object
| 23467 23468 23469 23470 23471 | # File 'lib/schemas.rb', line 23467 def to_dynamic { "error" => error&.to_dynamic, } end | 
#to_json(options = nil) ⇒ Object
| 23473 23474 23475 | # File 'lib/schemas.rb', line 23473 def to_json( = nil) JSON.generate(to_dynamic, ) end |