toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case NotificationEvent.all:
      return 'All';
    case NotificationEvent.inProgress:
      return 'InProgress';
    case NotificationEvent.success:
      return 'Success';
    case NotificationEvent.timedOut:
      return 'TimedOut';
    case NotificationEvent.cancelled:
      return 'Cancelled';
    case NotificationEvent.failed:
      return 'Failed';
  }
}