copyWith method

ShopifySharpRefundLineItem copyWith({
  1. ShopifySharpLineItem? lineItem,
  2. int? lineItemId,
  3. int? quantity,
  4. double? totalTax,
  5. double? subtotal,
  6. ShopifySharpPriceSet? subtotalSet,
  7. ShopifySharpPriceSet? totalTaxSet,
  8. String? restockType,
  9. int? locationId,
  10. int? id,
  11. String? adminGraphqlApiId,
})

Implementation

ShopifySharpRefundLineItem copyWith({
  ShopifySharpLineItem? lineItem,
  int? lineItemId,
  int? quantity,
  double? totalTax,
  double? subtotal,
  ShopifySharpPriceSet? subtotalSet,
  ShopifySharpPriceSet? totalTaxSet,
  String? restockType,
  int? locationId,
  int? id,
  String? adminGraphqlApiId,
}) {
  return ShopifySharpRefundLineItem(
    lineItem: lineItem ?? this.lineItem,
    lineItemId: lineItemId ?? this.lineItemId,
    quantity: quantity ?? this.quantity,
    totalTax: totalTax ?? this.totalTax,
    subtotal: subtotal ?? this.subtotal,
    subtotalSet: subtotalSet ?? this.subtotalSet,
    totalTaxSet: totalTaxSet ?? this.totalTaxSet,
    restockType: restockType ?? this.restockType,
    locationId: locationId ?? this.locationId,
    id: id ?? this.id,
    adminGraphqlApiId: adminGraphqlApiId ?? this.adminGraphqlApiId,
  );
}