GetRegionHealthCheckComputeBetaResult.fromMap constructor
GetRegionHealthCheckComputeBetaResult.fromMap(
- Map<String, dynamic> map
)
Implementation
factory GetRegionHealthCheckComputeBetaResult.fromMap(Map<String, dynamic> map) {
return GetRegionHealthCheckComputeBetaResult(
checkIntervalSec: map['checkIntervalSec'] as int,
creationTimestamp: map['creationTimestamp'] as String,
description: map['description'] as String,
grpcHealthCheck: GRPCHealthCheckResponseComputeBeta.fromMap((map['grpcHealthCheck']! as Map).cast<String, dynamic>()),
healthyThreshold: map['healthyThreshold'] as int,
http2HealthCheck: HTTP2HealthCheckResponseComputeBeta.fromMap((map['http2HealthCheck']! as Map).cast<String, dynamic>()),
httpHealthCheck: HTTPHealthCheckResponseComputeBeta.fromMap((map['httpHealthCheck']! as Map).cast<String, dynamic>()),
httpsHealthCheck: HTTPSHealthCheckResponseComputeBeta.fromMap((map['httpsHealthCheck']! as Map).cast<String, dynamic>()),
kind: map['kind'] as String,
logConfig: HealthCheckLogConfigResponseComputeBeta.fromMap((map['logConfig']! as Map).cast<String, dynamic>()),
name: map['name'] as String,
region: map['region'] as String,
selfLink: map['selfLink'] as String,
sslHealthCheck: SSLHealthCheckResponseComputeBeta.fromMap((map['sslHealthCheck']! as Map).cast<String, dynamic>()),
tcpHealthCheck: TCPHealthCheckResponseComputeBeta.fromMap((map['tcpHealthCheck']! as Map).cast<String, dynamic>()),
timeoutSec: map['timeoutSec'] as int,
type: map['type'] as String,
unhealthyThreshold: map['unhealthyThreshold'] as int,
);
}