toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case AlarmState.ok:
      return 'OK';
    case AlarmState.alarm:
      return 'ALARM';
    case AlarmState.insufficientData:
      return 'INSUFFICIENT_DATA';
  }
}