CouponModel constructor
CouponModel({
- int? id,
- String? code,
- String? amount,
- DateTime? dateCreated,
- DateTime? dateCreatedGmt,
- DateTime? dateModified,
- DateTime? dateModifiedGmt,
- String? discountType,
- String? description,
- String? dateExpires,
- String? dateExpiresGmt,
- int? usageCount,
- bool? individualUse,
- List<
int> ? productIds, - List<
int> ? excludedProductIds, - int? usageLimit,
- int? usageLimitPerUser,
- int? limitUsageToXItems,
- bool? freeShipping,
- List<
int> ? productCategories, - List<
int> ? excludedProductCategories, - bool? excludeSaleItems,
- String? minimumAmount,
- String? maximumAmount,
- List<
String> ? emailRestrictions, - List<
String> ? usedBy, - List<
Map< ? metaData,String, dynamic> >
Implementation
CouponModel({
this.id,
this.code,
this.amount,
this.dateCreated,
this.dateCreatedGmt,
this.dateModified,
this.dateModifiedGmt,
this.discountType,
this.description,
this.dateExpires,
this.dateExpiresGmt,
this.usageCount,
this.individualUse,
this.productIds,
this.excludedProductIds,
this.usageLimit,
this.usageLimitPerUser,
this.limitUsageToXItems,
this.freeShipping,
this.productCategories,
this.excludedProductCategories,
this.excludeSaleItems,
this.minimumAmount,
this.maximumAmount,
this.emailRestrictions,
this.usedBy,
this.metaData,
});