Class: GetNetworkPrivateNetworkEntityRequestAllResponse400

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



13460
13461
13462
13463
13464
13465
13466
# File 'lib/schemas.rb', line 13460

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

.from_json!(json) ⇒ Object



13468
13469
13470
# File 'lib/schemas.rb', line 13468

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

Instance Method Details

#to_dynamicObject



13472
13473
13474
13475
13476
13477
# File 'lib/schemas.rb', line 13472

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

#to_json(options = nil) ⇒ Object



13479
13480
13481
# File 'lib/schemas.rb', line 13479

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