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