Class: PostMonitorsResponse403
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostMonitorsResponse403
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
25823 25824 25825 25826 25827 25828 |
# File 'lib/schemas.rb', line 25823 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? PostMonitorsResponse403Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
25830 25831 25832 |
# File 'lib/schemas.rb', line 25830 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
25834 25835 25836 25837 25838 |
# File 'lib/schemas.rb', line 25834 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
25840 25841 25842 |
# File 'lib/schemas.rb', line 25840 def to_json( = nil) JSON.generate(to_dynamic, ) end |