Create constructor

Create({
  1. int? id,
  2. String? code,
  3. String? amount,
  4. DateTime? dateCreated,
  5. DateTime? dateCreatedGmt,
  6. DateTime? dateModified,
  7. DateTime? dateModifiedGmt,
  8. String? discountType,
  9. String? description,
  10. dynamic dateExpires,
  11. dynamic dateExpiresGmt,
  12. int? usageCount,
  13. bool? individualUse,
  14. List? productIds,
  15. List? excludedProductIds,
  16. dynamic usageLimit,
  17. dynamic usageLimitPerUser,
  18. dynamic limitUsageToXItems,
  19. bool? freeShipping,
  20. List? productCategories,
  21. List? excludedProductCategories,
  22. bool? excludeSaleItems,
  23. String? minimumAmount,
  24. String? maximumAmount,
  25. List? emailRestrictions,
  26. List? usedBy,
  27. List? metaData,
  28. 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,
});