toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (autoNetworkTier != null) 'autoNetworkTier': autoNetworkTier!,
      if (drainNatIps != null) 'drainNatIps': drainNatIps!,
      if (enableDynamicPortAllocation != null)
        'enableDynamicPortAllocation': enableDynamicPortAllocation!,
      if (enableEndpointIndependentMapping != null)
        'enableEndpointIndependentMapping': enableEndpointIndependentMapping!,
      if (endpointTypes != null) 'endpointTypes': endpointTypes!,
      if (icmpIdleTimeoutSec != null)
        'icmpIdleTimeoutSec': icmpIdleTimeoutSec!,
      if (logConfig != null) 'logConfig': logConfig!,
      if (maxPortsPerVm != null) 'maxPortsPerVm': maxPortsPerVm!,
      if (minPortsPerVm != null) 'minPortsPerVm': minPortsPerVm!,
      if (name != null) 'name': name!,
      if (natIpAllocateOption != null)
        'natIpAllocateOption': natIpAllocateOption!,
      if (natIps != null) 'natIps': natIps!,
      if (rules != null) 'rules': rules!,
      if (sourceSubnetworkIpRangesToNat != null)
        'sourceSubnetworkIpRangesToNat': sourceSubnetworkIpRangesToNat!,
      if (subnetworks != null) 'subnetworks': subnetworks!,
      if (tcpEstablishedIdleTimeoutSec != null)
        'tcpEstablishedIdleTimeoutSec': tcpEstablishedIdleTimeoutSec!,
      if (tcpTimeWaitTimeoutSec != null)
        'tcpTimeWaitTimeoutSec': tcpTimeWaitTimeoutSec!,
      if (tcpTransitoryIdleTimeoutSec != null)
        'tcpTransitoryIdleTimeoutSec': tcpTransitoryIdleTimeoutSec!,
      if (type != null) 'type': type!,
      if (udpIdleTimeoutSec != null) 'udpIdleTimeoutSec': udpIdleTimeoutSec!,
    };