toValue method
Implementation
String toValue() {
switch (this) {
case HealthStatus.healthy:
return 'HEALTHY';
case HealthStatus.unhealthy:
return 'UNHEALTHY';
case HealthStatus.unknown:
return 'UNKNOWN';
}
}
String toValue() {
switch (this) {
case HealthStatus.healthy:
return 'HEALTHY';
case HealthStatus.unhealthy:
return 'UNHEALTHY';
case HealthStatus.unknown:
return 'UNKNOWN';
}
}