Class: GetAuditLogsResponse401
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetAuditLogsResponse401
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
7165 7166 7167 7168 7169 7170 |
# File 'lib/schemas.rb', line 7165 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? GetAuditLogsResponse401Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
7172 7173 7174 |
# File 'lib/schemas.rb', line 7172 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
7176 7177 7178 7179 7180 |
# File 'lib/schemas.rb', line 7176 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
7182 7183 7184 |
# File 'lib/schemas.rb', line 7182 def to_json( = nil) JSON.generate(to_dynamic, ) end |