AppCoupon constructor

AppCoupon({
  1. String id = "",
  2. String code = "",
  3. double amount = 0,
  4. String ownerEmail = "",
  5. double ownerAmount = 1,
  6. String description = "",
  7. CouponType type = CouponType.oneMonthFree,
  8. int usageLimit = 100,
  9. List<String>? usedBy,
  10. List<String>? productIds,
  11. List<String>? excludedProductIds,
  12. List<String>? allowedEmails,
  13. List<String>? excludedEmails,
})

Implementation

AppCoupon({
  this.id = "",
  this.code = "",
  this.amount = 0,
  this.ownerEmail = "",
  this.ownerAmount = 1,
  this.description = "",
  this.type = CouponType.oneMonthFree,
  this.usageLimit = 100,
  this.usedBy,
  this.productIds,
  this.excludedProductIds,
  this.allowedEmails,
  this.excludedEmails
});