toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case TimeUnit.hourly:
      return 'HOURLY';
    case TimeUnit.daily:
      return 'DAILY';
    case TimeUnit.monthly:
      return 'MONTHLY';
  }
}