toTermInYears method

TermInYears toTermInYears()

Implementation

TermInYears toTermInYears() {
  switch (this) {
    case 'ONE_YEAR':
      return TermInYears.oneYear;
    case 'THREE_YEARS':
      return TermInYears.threeYears;
  }
  throw Exception('$this is not known in enum TermInYears');
}