toValue method
Implementation
String toValue() {
switch (this) {
case HealthState.initial:
return 'INITIAL';
case HealthState.healthy:
return 'HEALTHY';
case HealthState.unhealthy:
return 'UNHEALTHY';
}
}
String toValue() {
switch (this) {
case HealthState.initial:
return 'INITIAL';
case HealthState.healthy:
return 'HEALTHY';
case HealthState.unhealthy:
return 'UNHEALTHY';
}
}