Class: GetNetworkPrivateNetworkEntityRequestAllResponse403

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



13576
13577
13578
13579
13580
13581
# File 'lib/schemas.rb', line 13576

def self.from_dynamic!(d)
  d = Types::Hash[d]
  new(
    error: d["error"] ? GetNetworkPrivateNetworkEntityRequestAllResponse403Error.from_dynamic!(d["error"]) : nil,
  )
end

.from_json!(json) ⇒ Object



13583
13584
13585
# File 'lib/schemas.rb', line 13583

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

Instance Method Details

#to_dynamicObject



13587
13588
13589
13590
13591
# File 'lib/schemas.rb', line 13587

def to_dynamic
  {
    "error" => error&.to_dynamic,
  }
end

#to_json(options = nil) ⇒ Object



13593
13594
13595
# File 'lib/schemas.rb', line 13593

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