toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case TermInYears.oneYear:
      return 'ONE_YEAR';
    case TermInYears.threeYears:
      return 'THREE_YEARS';
  }
}