toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (creationTimestamp != null) 'creationTimestamp': creationTimestamp!,
  if (description != null) 'description': description!,
  if (enableFlowLogs != null) 'enableFlowLogs': enableFlowLogs!,
  if (externalIpv6Prefix != null) 'externalIpv6Prefix': externalIpv6Prefix!,
  if (fingerprint != null) 'fingerprint': fingerprint!,
  if (gatewayAddress != null) 'gatewayAddress': gatewayAddress!,
  if (id != null) 'id': id!,
  if (internalIpv6Prefix != null) 'internalIpv6Prefix': internalIpv6Prefix!,
  if (ipCidrRange != null) 'ipCidrRange': ipCidrRange!,
  if (ipCollection != null) 'ipCollection': ipCollection!,
  if (ipv6AccessType != null) 'ipv6AccessType': ipv6AccessType!,
  if (ipv6CidrRange != null) 'ipv6CidrRange': ipv6CidrRange!,
  if (ipv6GceEndpoint != null) 'ipv6GceEndpoint': ipv6GceEndpoint!,
  if (kind != null) 'kind': kind!,
  if (logConfig != null) 'logConfig': logConfig!,
  if (name != null) 'name': name!,
  if (network != null) 'network': network!,
  if (params != null) 'params': params!,
  if (privateIpGoogleAccess != null)
    'privateIpGoogleAccess': privateIpGoogleAccess!,
  if (privateIpv6GoogleAccess != null)
    'privateIpv6GoogleAccess': privateIpv6GoogleAccess!,
  if (purpose != null) 'purpose': purpose!,
  if (region != null) 'region': region!,
  if (reservedInternalRange != null)
    'reservedInternalRange': reservedInternalRange!,
  if (role != null) 'role': role!,
  if (secondaryIpRanges != null) 'secondaryIpRanges': secondaryIpRanges!,
  if (selfLink != null) 'selfLink': selfLink!,
  if (stackType != null) 'stackType': stackType!,
  if (state != null) 'state': state!,
  if (systemReservedExternalIpv6Ranges != null)
    'systemReservedExternalIpv6Ranges': systemReservedExternalIpv6Ranges!,
  if (systemReservedInternalIpv6Ranges != null)
    'systemReservedInternalIpv6Ranges': systemReservedInternalIpv6Ranges!,
  if (utilizationDetails != null) 'utilizationDetails': utilizationDetails!,
};