toJson method

  1. @override
Object toJson()

Implementation

@override
Object toJson() => {
  'creationTimestamp': ?creationTimestamp,
  'description': ?description,
  'gatewayIpVersion': ?gatewayIpVersion,
  'id': ?id?.toString(),
  'kind': ?kind,
  'labelFingerprint': ?labelFingerprint,
  if (labels.isNotDefault) 'labels': labels,
  'name': ?name,
  'network': ?network,
  'params': ?params?.toJson(),
  'region': ?region,
  'selfLink': ?selfLink,
  'stackType': ?stackType,
  if (vpnInterfaces.isNotDefault)
    'vpnInterfaces': [for (final i in vpnInterfaces) i.toJson()],
};