Product constructor

Product({
  1. required String skuId,
  2. required double? price,
  3. required int? quantity,
  4. String? merchantId,
})

Creates a new Product instance.

The skuId is required, while price, quantity, and merchantId are optional.

Implementation

Product({
  required this.skuId,
  required this.price,
  required this.quantity,
  this.merchantId,
});