toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return <String, dynamic>{
    'checkIntervalSec': ?checkIntervalSec,
    'creationTimestamp': ?creationTimestamp,
    'deletionPolicy': ?deletionPolicy,
    'description': ?description,
    'grpcHealthChecks': ?(() { final guardedValue = grpcHealthChecks; if (guardedValue == null) return null; return pulumi.Input.encodeList<GetHealthCheckGrpcHealthCheck, Map<String, dynamic>>(guardedValue, (value) => value.toMap()); })(),
    'grpcTlsHealthChecks': ?(() { final guardedValue = grpcTlsHealthChecks; if (guardedValue == null) return null; return pulumi.Input.encodeList<GetHealthCheckGrpcTlsHealthCheck, Map<String, dynamic>>(guardedValue, (value) => value.toMap()); })(),
    'healthyThreshold': ?healthyThreshold,
    'http2HealthChecks': ?(() { final guardedValue = http2HealthChecks; if (guardedValue == null) return null; return pulumi.Input.encodeList<GetHealthCheckHttp2HealthCheck, Map<String, dynamic>>(guardedValue, (value) => value.toMap()); })(),
    'httpHealthChecks': ?(() { final guardedValue = httpHealthChecks; if (guardedValue == null) return null; return pulumi.Input.encodeList<GetHealthCheckHttpHealthCheck, Map<String, dynamic>>(guardedValue, (value) => value.toMap()); })(),
    'httpsHealthChecks': ?(() { final guardedValue = httpsHealthChecks; if (guardedValue == null) return null; return pulumi.Input.encodeList<GetHealthCheckHttpsHealthCheck, Map<String, dynamic>>(guardedValue, (value) => value.toMap()); })(),
    'id': ?id,
    'logConfigs': ?(() { final guardedValue = logConfigs; if (guardedValue == null) return null; return pulumi.Input.encodeList<GetHealthCheckLogConfig, Map<String, dynamic>>(guardedValue, (value) => value.toMap()); })(),
    'name': ?name,
    'project': ?project,
    'selfLink': ?selfLink,
    'sourceRegions': ?sourceRegions,
    'sslHealthChecks': ?(() { final guardedValue = sslHealthChecks; if (guardedValue == null) return null; return pulumi.Input.encodeList<GetHealthCheckSslHealthCheck, Map<String, dynamic>>(guardedValue, (value) => value.toMap()); })(),
    'tcpHealthChecks': ?(() { final guardedValue = tcpHealthChecks; if (guardedValue == null) return null; return pulumi.Input.encodeList<GetHealthCheckTcpHealthCheck, Map<String, dynamic>>(guardedValue, (value) => value.toMap()); })(),
    'timeoutSec': ?timeoutSec,
    'type': ?type,
    'unhealthyThreshold': ?unhealthyThreshold,
  };
}