toJson method

  1. @override
Object toJson()

Implementation

@override
Object toJson() => {
  'creationTimestamp': ?creationTimestamp,
  'description': ?description,
  'fingerprint': ?fingerprint,
  if (healthChecks.isNotDefault) 'healthChecks': healthChecks,
  'healthStatusAggregationPolicy': ?healthStatusAggregationPolicy,
  'id': ?id?.toString(),
  'kind': ?kind,
  'name': ?name,
  if (networkEndpointGroups.isNotDefault)
    'networkEndpointGroups': networkEndpointGroups,
  if (notificationEndpoints.isNotDefault)
    'notificationEndpoints': notificationEndpoints,
  'region': ?region,
  'selfLink': ?selfLink,
};