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