toValue method

String toValue()

Implementation

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