Class: GetNetworkPrivateNetworkEntityRequestAllResponse401Error

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/schemas.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_dynamic!(d) ⇒ Object



13492
13493
13494
13495
13496
13497
13498
# File 'lib/schemas.rb', line 13492

def self.from_dynamic!(d)
  d = Types::Hash[d]
  new(
    message:                                                               d["message"],
    get_network_private_network_entity_request_all_response401_error_name: d["name"],
  )
end

.from_json!(json) ⇒ Object



13500
13501
13502
# File 'lib/schemas.rb', line 13500

def self.from_json!(json)
  from_dynamic!(JSON.parse(json))
end

Instance Method Details

#to_dynamicObject



13504
13505
13506
13507
13508
13509
# File 'lib/schemas.rb', line 13504

def to_dynamic
  {
    "message" => message,
    "name"    => get_network_private_network_entity_request_all_response401_error_name,
  }
end

#to_json(options = nil) ⇒ Object



13511
13512
13513
# File 'lib/schemas.rb', line 13511

def to_json(options = nil)
  JSON.generate(to_dynamic, options)
end