toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (checkIntervalSec != null) 'checkIntervalSec': checkIntervalSec!,
      if (creationTimestamp != null) 'creationTimestamp': creationTimestamp!,
      if (description != null) 'description': description!,
      if (grpcHealthCheck != null) 'grpcHealthCheck': grpcHealthCheck!,
      if (healthyThreshold != null) 'healthyThreshold': healthyThreshold!,
      if (http2HealthCheck != null) 'http2HealthCheck': http2HealthCheck!,
      if (httpHealthCheck != null) 'httpHealthCheck': httpHealthCheck!,
      if (httpsHealthCheck != null) 'httpsHealthCheck': httpsHealthCheck!,
      if (id != null) 'id': id!,
      if (kind != null) 'kind': kind!,
      if (logConfig != null) 'logConfig': logConfig!,
      if (name != null) 'name': name!,
      if (region != null) 'region': region!,
      if (selfLink != null) 'selfLink': selfLink!,
      if (sslHealthCheck != null) 'sslHealthCheck': sslHealthCheck!,
      if (tcpHealthCheck != null) 'tcpHealthCheck': tcpHealthCheck!,
      if (timeoutSec != null) 'timeoutSec': timeoutSec!,
      if (type != null) 'type': type!,
      if (unhealthyThreshold != null)
        'unhealthyThreshold': unhealthyThreshold!,
    };