toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (IPAddress != null) 'IPAddress': IPAddress!,
  if (IPProtocol != null) 'IPProtocol': IPProtocol!,
  if (allPorts != null) 'allPorts': allPorts!,
  if (allowGlobalAccess != null) 'allowGlobalAccess': allowGlobalAccess!,
  if (allowPscGlobalAccess != null)
    'allowPscGlobalAccess': allowPscGlobalAccess!,
  if (backendService != null) 'backendService': backendService!,
  if (baseForwardingRule != null) 'baseForwardingRule': baseForwardingRule!,
  if (creationTimestamp != null) 'creationTimestamp': creationTimestamp!,
  if (description != null) 'description': description!,
  if (externalManagedBackendBucketMigrationState != null)
    'externalManagedBackendBucketMigrationState':
        externalManagedBackendBucketMigrationState!,
  if (externalManagedBackendBucketMigrationTestingPercentage != null)
    'externalManagedBackendBucketMigrationTestingPercentage':
        externalManagedBackendBucketMigrationTestingPercentage!,
  if (fingerprint != null) 'fingerprint': fingerprint!,
  if (id != null) 'id': id!,
  if (ipCollection != null) 'ipCollection': ipCollection!,
  if (ipVersion != null) 'ipVersion': ipVersion!,
  if (isMirroringCollector != null)
    'isMirroringCollector': isMirroringCollector!,
  if (kind != null) 'kind': kind!,
  if (labelFingerprint != null) 'labelFingerprint': labelFingerprint!,
  if (labels != null) 'labels': labels!,
  if (loadBalancingScheme != null)
    'loadBalancingScheme': loadBalancingScheme!,
  if (metadataFilters != null) 'metadataFilters': metadataFilters!,
  if (name != null) 'name': name!,
  if (network != null) 'network': network!,
  if (networkTier != null) 'networkTier': networkTier!,
  if (noAutomateDnsZone != null) 'noAutomateDnsZone': noAutomateDnsZone!,
  if (portRange != null) 'portRange': portRange!,
  if (ports != null) 'ports': ports!,
  if (pscConnectionId != null) 'pscConnectionId': pscConnectionId!,
  if (pscConnectionStatus != null)
    'pscConnectionStatus': pscConnectionStatus!,
  if (region != null) 'region': region!,
  if (selfLink != null) 'selfLink': selfLink!,
  if (selfLinkWithId != null) 'selfLinkWithId': selfLinkWithId!,
  if (serviceDirectoryRegistrations != null)
    'serviceDirectoryRegistrations': serviceDirectoryRegistrations!,
  if (serviceLabel != null) 'serviceLabel': serviceLabel!,
  if (serviceName != null) 'serviceName': serviceName!,
  if (sourceIpRanges != null) 'sourceIpRanges': sourceIpRanges!,
  if (subnetwork != null) 'subnetwork': subnetwork!,
  if (target != null) 'target': target!,
};