copyWith method
ShopifySharpRefundLineItem
copyWith({
- ShopifySharpLineItem? lineItem,
- int? lineItemId,
- int? quantity,
- double? totalTax,
- double? subtotal,
- ShopifySharpPriceSet? subtotalSet,
- ShopifySharpPriceSet? totalTaxSet,
- String? restockType,
- int? locationId,
- int? id,
- 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,
);
}