toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case AnomalySubscriptionFrequency.daily:
      return 'DAILY';
    case AnomalySubscriptionFrequency.immediate:
      return 'IMMEDIATE';
    case AnomalySubscriptionFrequency.weekly:
      return 'WEEKLY';
  }
}