Class: PostSecurityAPIValidationResponse401
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostSecurityAPIValidationResponse401
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
27286 27287 27288 27289 27290 27291 |
# File 'lib/schemas.rb', line 27286 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? PostSecurityAPIValidationResponse401Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
27293 27294 27295 |
# File 'lib/schemas.rb', line 27293 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
27297 27298 27299 27300 27301 |
# File 'lib/schemas.rb', line 27297 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
27303 27304 27305 |
# File 'lib/schemas.rb', line 27303 def to_json( = nil) JSON.generate(to_dynamic, ) end |