toJson method
Implementation
@override
Object toJson() => {
'allowSubnetCidrRoutesOverlap': ?allowSubnetCidrRoutesOverlap,
'creationTimestamp': ?creationTimestamp,
'description': ?description,
'enableFlowLogs': ?enableFlowLogs,
'externalIpv6Prefix': ?externalIpv6Prefix,
'fingerprint': ?fingerprint,
'gatewayAddress': ?gatewayAddress,
'id': ?id?.toString(),
'internalIpv6Prefix': ?internalIpv6Prefix,
'ipCidrRange': ?ipCidrRange,
'ipCollection': ?ipCollection,
'ipv6AccessType': ?ipv6AccessType,
'ipv6CidrRange': ?ipv6CidrRange,
'ipv6GceEndpoint': ?ipv6GceEndpoint,
'kind': ?kind,
'logConfig': ?logConfig?.toJson(),
'name': ?name,
'network': ?network,
'params': ?params?.toJson(),
'privateIpGoogleAccess': ?privateIpGoogleAccess,
'privateIpv6GoogleAccess': ?privateIpv6GoogleAccess,
'purpose': ?purpose,
'region': ?region,
'reservedInternalRange': ?reservedInternalRange,
'resolveSubnetMask': ?resolveSubnetMask,
'role': ?role,
if (secondaryIpRanges.isNotDefault)
'secondaryIpRanges': [for (final i in secondaryIpRanges) i.toJson()],
'selfLink': ?selfLink,
'stackType': ?stackType,
'state': ?state,
if (systemReservedExternalIpv6Ranges.isNotDefault)
'systemReservedExternalIpv6Ranges': systemReservedExternalIpv6Ranges,
if (systemReservedInternalIpv6Ranges.isNotDefault)
'systemReservedInternalIpv6Ranges': systemReservedInternalIpv6Ranges,
'utilizationDetails': ?utilizationDetails?.toJson(),
};