Class: GetNetworkPrivateResponse500
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetNetworkPrivateResponse500
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
14099 14100 14101 14102 14103 14104 |
# File 'lib/schemas.rb', line 14099 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? GetNetworkPrivateResponse500Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
14106 14107 14108 |
# File 'lib/schemas.rb', line 14106 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
14110 14111 14112 14113 14114 |
# File 'lib/schemas.rb', line 14110 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
14116 14117 14118 |
# File 'lib/schemas.rb', line 14116 def to_json( = nil) JSON.generate(to_dynamic, ) end |