Class: PutMocksMockIDResponse500
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutMocksMockIDResponse500
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
32838 32839 32840 32841 32842 32843 |
# File 'lib/schemas.rb', line 32838 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? PutMocksMockIDResponse500Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
32845 32846 32847 |
# File 'lib/schemas.rb', line 32845 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
32849 32850 32851 32852 32853 |
# File 'lib/schemas.rb', line 32849 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
32855 32856 32857 |
# File 'lib/schemas.rb', line 32855 def to_json( = nil) JSON.generate(to_dynamic, ) end |