toJson method

  1. @override
Object toJson()

Implementation

@override
Object toJson() => {
  'checkIntervalSec': ?checkIntervalSec,
  'creationTimestamp': ?creationTimestamp,
  'description': ?description,
  'grpcHealthCheck': ?grpcHealthCheck?.toJson(),
  'grpcTlsHealthCheck': ?grpcTlsHealthCheck?.toJson(),
  'healthyThreshold': ?healthyThreshold,
  'http2HealthCheck': ?http2HealthCheck?.toJson(),
  'httpHealthCheck': ?httpHealthCheck?.toJson(),
  'httpsHealthCheck': ?httpsHealthCheck?.toJson(),
  'id': ?id?.toString(),
  'kind': ?kind,
  'logConfig': ?logConfig?.toJson(),
  'name': ?name,
  'region': ?region,
  'selfLink': ?selfLink,
  if (sourceRegions.isNotDefault) 'sourceRegions': sourceRegions,
  'sslHealthCheck': ?sslHealthCheck?.toJson(),
  'tcpHealthCheck': ?tcpHealthCheck?.toJson(),
  'timeoutSec': ?timeoutSec,
  'type': ?type,
  'unhealthyThreshold': ?unhealthyThreshold,
};