Class: PutNetworkPrivateNetworkEntityRequestRequestIDResponse400

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



34122
34123
34124
34125
34126
34127
34128
# File 'lib/schemas.rb', line 34122

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

.from_json!(json) ⇒ Object



34130
34131
34132
# File 'lib/schemas.rb', line 34130

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

Instance Method Details

#to_dynamicObject



34134
34135
34136
34137
34138
34139
# File 'lib/schemas.rb', line 34134

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

#to_json(options = nil) ⇒ Object



34141
34142
34143
# File 'lib/schemas.rb', line 34141

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