Class: PostWebhooksResponse500
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostWebhooksResponse500
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
27653 27654 27655 27656 27657 27658 |
# File 'lib/schemas.rb', line 27653 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? PostWebhooksResponse500Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
27660 27661 27662 |
# File 'lib/schemas.rb', line 27660 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
27664 27665 27666 27667 27668 |
# File 'lib/schemas.rb', line 27664 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
27670 27671 27672 |
# File 'lib/schemas.rb', line 27670 def to_json( = nil) JSON.generate(to_dynamic, ) end |