copyWith method

ShopifySharpDiscountAllocation copyWith({
  1. String? amount,
  2. int? discountApplicationIndex,
  3. ShopifySharpPriceSet? amountSet,
})

Implementation

ShopifySharpDiscountAllocation copyWith({
  String? amount,
  int? discountApplicationIndex,
  ShopifySharpPriceSet? amountSet,
}) {
  return ShopifySharpDiscountAllocation(
    amount: amount ?? this.amount,
    discountApplicationIndex:
        discountApplicationIndex ?? this.discountApplicationIndex,
    amountSet: amountSet ?? this.amountSet,
  );
}