toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case Duration.hr_24:
      return 'HR_24';
    case Duration.day_7:
      return 'DAY_7';
    case Duration.day_14:
      return 'DAY_14';
    case Duration.day_30:
      return 'DAY_30';
  }
}