Class: PostImportOpenapiResponse400
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostImportOpenapiResponse400
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
23607 23608 23609 23610 23611 23612 |
# File 'lib/schemas.rb', line 23607 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? PostImportOpenapiResponse400Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
23614 23615 23616 |
# File 'lib/schemas.rb', line 23614 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
23618 23619 23620 23621 23622 |
# File 'lib/schemas.rb', line 23618 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
23624 23625 23626 |
# File 'lib/schemas.rb', line 23624 def to_json( = nil) JSON.generate(to_dynamic, ) end |