toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case TimeUnit.daily:
      return 'DAILY';
    case TimeUnit.monthly:
      return 'MONTHLY';
    case TimeUnit.quarterly:
      return 'QUARTERLY';
    case TimeUnit.annually:
      return 'ANNUALLY';
  }
}