AppCoupon constructor
AppCoupon({
- String id = "",
- String code = "",
- double amount = 0,
- String ownerEmail = "",
- double ownerAmount = 1,
- String description = "",
- CouponType type = CouponType.oneMonthFree,
- int usageLimit = 100,
- List<
String> ? usedBy, - List<
String> ? productIds, - List<
String> ? excludedProductIds, - List<
String> ? allowedEmails, - 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
});