Class: GetNetworkPrivateResponse401Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetNetworkPrivateResponse401Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
13926 13927 13928 13929 13930 13931 13932 |
# File 'lib/schemas.rb', line 13926 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], get_network_private_response401_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
13934 13935 13936 |
# File 'lib/schemas.rb', line 13934 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
13938 13939 13940 13941 13942 13943 |
# File 'lib/schemas.rb', line 13938 def to_dynamic { "message" => , "name" => get_network_private_response401_error_name, } end |
#to_json(options = nil) ⇒ Object
13945 13946 13947 |
# File 'lib/schemas.rb', line 13945 def to_json( = nil) JSON.generate(to_dynamic, ) end |