VirtualGatewayHealthCheckPolicy.fromJson constructor
VirtualGatewayHealthCheckPolicy.fromJson(
- Map<String, dynamic> json
)
Implementation
factory VirtualGatewayHealthCheckPolicy.fromJson(Map<String, dynamic> json) {
return VirtualGatewayHealthCheckPolicy(
healthyThreshold: json['healthyThreshold'] as int,
intervalMillis: json['intervalMillis'] as int,
protocol: (json['protocol'] as String).toVirtualGatewayPortProtocol(),
timeoutMillis: json['timeoutMillis'] as int,
unhealthyThreshold: json['unhealthyThreshold'] as int,
path: json['path'] as String?,
port: json['port'] as int?,
);
}