Product.fromMap constructor
Creates a Product instance from a Map.
This is used to reconstruct the object from data received via MethodChannel.
Implementation
factory Product.fromMap(Map<String, dynamic> map) {
return Product(
skuId: map["skuId"],
price: map["price"],
quantity: map["quantity"],
merchantId: map["merchantId"],
);
}