Class: GetMocksMockIDCallLogsResponse401
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetMocksMockIDCallLogsResponse401
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
10943 10944 10945 10946 10947 10948 |
# File 'lib/schemas.rb', line 10943 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? GetMocksMockIDCallLogsResponse401Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
10950 10951 10952 |
# File 'lib/schemas.rb', line 10950 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
10954 10955 10956 10957 10958 |
# File 'lib/schemas.rb', line 10954 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
10960 10961 10962 |
# File 'lib/schemas.rb', line 10960 def to_json( = nil) JSON.generate(to_dynamic, ) end |