HealthCheckPolicy.fromJson constructor

HealthCheckPolicy.fromJson(
  1. Map<String, dynamic> json
)

Implementation

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