toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case EnvironmentHealth.green:
      return 'Green';
    case EnvironmentHealth.yellow:
      return 'Yellow';
    case EnvironmentHealth.red:
      return 'Red';
    case EnvironmentHealth.grey:
      return 'Grey';
  }
}