toHealthState method

HealthState toHealthState()

Implementation

HealthState toHealthState() {
  switch (this) {
    case 'INITIAL':
      return HealthState.initial;
    case 'HEALTHY':
      return HealthState.healthy;
    case 'UNHEALTHY':
      return HealthState.unhealthy;
  }
  throw Exception('$this is not known in enum HealthState');
}