toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case TimeUnitsType.seconds:
      return 'seconds';
    case TimeUnitsType.minutes:
      return 'minutes';
    case TimeUnitsType.hours:
      return 'hours';
    case TimeUnitsType.days:
      return 'days';
  }
}