Discount constructor

Discount({
  1. String? name,
  2. String? id,
  3. TotalPriceClass? unitPrice,
  4. TotalPriceClass? totalPrice,
  5. int? quantity,
  6. dynamic priceType,
  7. int? discountPercentage,
})

Implementation

Discount({
  this.name,
  this.id,
  this.unitPrice,
  this.totalPrice,
  this.quantity,
  this.priceType,
  this.discountPercentage,
});