toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case Unit.seconds:
      return 'SECONDS';
    case Unit.count:
      return 'COUNT';
    case Unit.percent:
      return 'PERCENT';
  }
}