toValue method

String toValue()

Implementation

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