toPaymentOption method

PaymentOption toPaymentOption()

Implementation

PaymentOption toPaymentOption() {
  switch (this) {
    case 'NO_UPFRONT':
      return PaymentOption.noUpfront;
    case 'PARTIAL_UPFRONT':
      return PaymentOption.partialUpfront;
    case 'ALL_UPFRONT':
      return PaymentOption.allUpfront;
    case 'LIGHT_UTILIZATION':
      return PaymentOption.lightUtilization;
    case 'MEDIUM_UTILIZATION':
      return PaymentOption.mediumUtilization;
    case 'HEAVY_UTILIZATION':
      return PaymentOption.heavyUtilization;
  }
  throw Exception('$this is not known in enum PaymentOption');
}