Class: DeleteMonitorsMonitorIDResponse401
- Inherits:
- 
      Dry::Struct
      
        - Object
- Dry::Struct
- DeleteMonitorsMonitorIDResponse401
 
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
| 3339 3340 3341 3342 3343 3344 | # File 'lib/schemas.rb', line 3339 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? DeleteMonitorsMonitorIDResponse401Error.from_dynamic!(d["error"]) : nil, ) end | 
.from_json!(json) ⇒ Object
| 3346 3347 3348 | # File 'lib/schemas.rb', line 3346 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end | 
Instance Method Details
#to_dynamic ⇒ Object
| 3350 3351 3352 3353 3354 | # File 'lib/schemas.rb', line 3350 def to_dynamic { "error" => error&.to_dynamic, } end | 
#to_json(options = nil) ⇒ Object
| 3356 3357 3358 | # File 'lib/schemas.rb', line 3356 def to_json( = nil) JSON.generate(to_dynamic, ) end |