toValue method
Implementation
String toValue() {
switch (this) {
case TargetHealthStateEnum.initial:
return 'initial';
case TargetHealthStateEnum.healthy:
return 'healthy';
case TargetHealthStateEnum.unhealthy:
return 'unhealthy';
case TargetHealthStateEnum.unused:
return 'unused';
case TargetHealthStateEnum.draining:
return 'draining';
case TargetHealthStateEnum.unavailable:
return 'unavailable';
}
}