Discount constructor

const Discount({
  1. String? identifier,
  2. double? price,
  3. String? priceString,
  4. String? currencyCode,
  5. required RovenuePeriod period,
  6. required int numberOfPeriods,
  7. required PaymentMode paymentMode,
  8. required DiscountType type,
})

Implementation

const Discount({
  this.identifier,
  this.price,
  this.priceString,
  this.currencyCode,
  required this.period,
  required this.numberOfPeriods,
  required this.paymentMode,
  required this.type,
});