toHealthStatus method
Implementation
HealthStatus toHealthStatus() {
switch (this) {
case 'HEALTHY':
return HealthStatus.healthy;
case 'UNHEALTHY':
return HealthStatus.unhealthy;
case 'UNKNOWN':
return HealthStatus.unknown;
}
throw Exception('$this is not known in enum HealthStatus');
}