periodUnit property

PeriodUnit periodUnit

Unit for the billing period of the introductory price, can be DAY, WEEK, MONTH or YEAR.

Implementation

PeriodUnit get periodUnit {
  // ignore: deprecated_member_use_from_same_package
  switch (introPricePeriodUnit) {
    case 'DAY':
      {
        return PeriodUnit.day;
      }
    case 'WEEK':
      {
        return PeriodUnit.week;
      }
    case 'MONTH':
      {
        return PeriodUnit.month;
      }
    case 'YEAR':
      {
        return PeriodUnit.year;
      }
    default:
      {
        return PeriodUnit.unknown;
      }
  }
}