toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case DurationUnit.s:
      return 's';
    case DurationUnit.ms:
      return 'ms';
  }
}