Class: GetAuditLogsResponse500
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetAuditLogsResponse500
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
7254 7255 7256 7257 7258 7259 |
# File 'lib/schemas.rb', line 7254 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? GetAuditLogsResponse500Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
7261 7262 7263 |
# File 'lib/schemas.rb', line 7261 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
7265 7266 7267 7268 7269 |
# File 'lib/schemas.rb', line 7265 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
7271 7272 7273 |
# File 'lib/schemas.rb', line 7271 def to_json( = nil) JSON.generate(to_dynamic, ) end |