toJson method

  1. @override
Object toJson()

Implementation

@override
Object toJson() => {
  'autoNetworkTier': ?autoNetworkTier,
  if (drainNatIps.isNotDefault) 'drainNatIps': drainNatIps,
  'effectiveTcpTimeWaitTimeoutSec': ?effectiveTcpTimeWaitTimeoutSec,
  'enableDynamicPortAllocation': ?enableDynamicPortAllocation,
  'enableEndpointIndependentMapping': ?enableEndpointIndependentMapping,
  if (endpointTypes.isNotDefault) 'endpointTypes': endpointTypes,
  'icmpIdleTimeoutSec': ?icmpIdleTimeoutSec,
  'logConfig': ?logConfig?.toJson(),
  'maxPortsPerVm': ?maxPortsPerVm,
  'minPortsPerVm': ?minPortsPerVm,
  'name': ?name,
  if (nat64Subnetworks.isNotDefault)
    'nat64Subnetworks': [for (final i in nat64Subnetworks) i.toJson()],
  'natIpAllocateOption': ?natIpAllocateOption,
  if (natIps.isNotDefault) 'natIps': natIps,
  if (rules.isNotDefault) 'rules': [for (final i in rules) i.toJson()],
  'sourceSubnetworkIpRangesToNat': ?sourceSubnetworkIpRangesToNat,
  'sourceSubnetworkIpRangesToNat64': ?sourceSubnetworkIpRangesToNat64,
  if (subnetworks.isNotDefault)
    'subnetworks': [for (final i in subnetworks) i.toJson()],
  'tcpEstablishedIdleTimeoutSec': ?tcpEstablishedIdleTimeoutSec,
  'tcpTimeWaitTimeoutSec': ?tcpTimeWaitTimeoutSec,
  'tcpTransitoryIdleTimeoutSec': ?tcpTransitoryIdleTimeoutSec,
  'type': ?type,
  'udpIdleTimeoutSec': ?udpIdleTimeoutSec,
};