Class: PutNetworkPrivateNetworkEntityRequestRequestIDResponse

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



34085
34086
34087
34088
34089
34090
# File 'lib/schemas.rb', line 34085

def self.from_dynamic!(d)
  d = Types::Hash[d]
  new(
    request: d["request"]&.map { |x| PutNetworkPrivateNetworkEntityRequestRequestIDResponseRequestItem.from_dynamic!(x) },
  )
end

.from_json!(json) ⇒ Object



34092
34093
34094
# File 'lib/schemas.rb', line 34092

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

Instance Method Details

#to_dynamicObject



34096
34097
34098
34099
34100
# File 'lib/schemas.rb', line 34096

def to_dynamic
  {
    "request" => request&.map { |x| x.to_dynamic },
  }
end

#to_json(options = nil) ⇒ Object



34102
34103
34104
# File 'lib/schemas.rb', line 34102

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