Class: PostImportOpenapiResponse429
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostImportOpenapiResponse429
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
23694 23695 23696 23697 23698 23699 23700 |
# File 'lib/schemas.rb', line 23694 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"], message: d["message"], ) end |
.from_json!(json) ⇒ Object
23702 23703 23704 |
# File 'lib/schemas.rb', line 23702 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
23706 23707 23708 23709 23710 23711 |
# File 'lib/schemas.rb', line 23706 def to_dynamic { "error" => error, "message" => , } end |
#to_json(options = nil) ⇒ Object
23713 23714 23715 |
# File 'lib/schemas.rb', line 23713 def to_json( = nil) JSON.generate(to_dynamic, ) end |