toValue method

String toValue()

Implementation

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