toHealthCheckProtocol method

HealthCheckProtocol toHealthCheckProtocol()

Implementation

HealthCheckProtocol toHealthCheckProtocol() {
  switch (this) {
    case 'TCP':
      return HealthCheckProtocol.tcp;
    case 'HTTP':
      return HealthCheckProtocol.http;
    case 'HTTPS':
      return HealthCheckProtocol.https;
  }
  throw Exception('$this is not known in enum HealthCheckProtocol');
}