toValue method

String toValue()

Implementation

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