HealthCheck.fromJson constructor

HealthCheck.fromJson(
  1. Map json_
)

Implementation

HealthCheck.fromJson(core.Map json_)
    : this(
        checkIntervalSec: json_.containsKey('checkIntervalSec')
            ? json_['checkIntervalSec'] as core.int
            : null,
        creationTimestamp: json_.containsKey('creationTimestamp')
            ? json_['creationTimestamp'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        grpcHealthCheck: json_.containsKey('grpcHealthCheck')
            ? GRPCHealthCheck.fromJson(json_['grpcHealthCheck']
                as core.Map<core.String, core.dynamic>)
            : null,
        healthyThreshold: json_.containsKey('healthyThreshold')
            ? json_['healthyThreshold'] as core.int
            : null,
        http2HealthCheck: json_.containsKey('http2HealthCheck')
            ? HTTP2HealthCheck.fromJson(json_['http2HealthCheck']
                as core.Map<core.String, core.dynamic>)
            : null,
        httpHealthCheck: json_.containsKey('httpHealthCheck')
            ? HTTPHealthCheck.fromJson(json_['httpHealthCheck']
                as core.Map<core.String, core.dynamic>)
            : null,
        httpsHealthCheck: json_.containsKey('httpsHealthCheck')
            ? HTTPSHealthCheck.fromJson(json_['httpsHealthCheck']
                as core.Map<core.String, core.dynamic>)
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        logConfig: json_.containsKey('logConfig')
            ? HealthCheckLogConfig.fromJson(
                json_['logConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        region: json_.containsKey('region')
            ? json_['region'] as core.String
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        sslHealthCheck: json_.containsKey('sslHealthCheck')
            ? SSLHealthCheck.fromJson(json_['sslHealthCheck']
                as core.Map<core.String, core.dynamic>)
            : null,
        tcpHealthCheck: json_.containsKey('tcpHealthCheck')
            ? TCPHealthCheck.fromJson(json_['tcpHealthCheck']
                as core.Map<core.String, core.dynamic>)
            : null,
        timeoutSec: json_.containsKey('timeoutSec')
            ? json_['timeoutSec'] as core.int
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
        unhealthyThreshold: json_.containsKey('unhealthyThreshold')
            ? json_['unhealthyThreshold'] as core.int
            : null,
      );