Class: GetMocksMockIDCallLogsResponse400
- Inherits:
- 
      Dry::Struct
      
        - Object
- Dry::Struct
- GetMocksMockIDCallLogsResponse400
 
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
| 10886 10887 10888 10889 10890 10891 | # File 'lib/schemas.rb', line 10886 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? GetMocksMockIDCallLogsResponse400Error.from_dynamic!(d["error"]) : nil, ) end | 
.from_json!(json) ⇒ Object
| 10893 10894 10895 | # File 'lib/schemas.rb', line 10893 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end | 
Instance Method Details
#to_dynamic ⇒ Object
| 10897 10898 10899 10900 10901 | # File 'lib/schemas.rb', line 10897 def to_dynamic { "error" => error&.to_dynamic, } end | 
#to_json(options = nil) ⇒ Object
| 10903 10904 10905 | # File 'lib/schemas.rb', line 10903 def to_json( = nil) JSON.generate(to_dynamic, ) end |