Class: GetNetworkPrivateNetworkEntityRequestAllResponse500
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetNetworkPrivateNetworkEntityRequestAllResponse500
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
13665 13666 13667 13668 13669 13670 |
# File 'lib/schemas.rb', line 13665 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? GetNetworkPrivateNetworkEntityRequestAllResponse500Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
13672 13673 13674 |
# File 'lib/schemas.rb', line 13672 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
13676 13677 13678 13679 13680 |
# File 'lib/schemas.rb', line 13676 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
13682 13683 13684 |
# File 'lib/schemas.rb', line 13682 def to_json( = nil) JSON.generate(to_dynamic, ) end |