toPriceClass method

PriceClass toPriceClass()

Implementation

PriceClass toPriceClass() {
  switch (this) {
    case 'PriceClass_100':
      return PriceClass.priceClass_100;
    case 'PriceClass_200':
      return PriceClass.priceClass_200;
    case 'PriceClass_All':
      return PriceClass.priceClassAll;
  }
  throw Exception('$this is not known in enum PriceClass');
}