copyWithWrapped method
ShopifySharpRefundLineItem
copyWithWrapped({
- Wrapped<
ShopifySharpLineItem?> ? lineItem, - Wrapped<
int?> ? lineItemId, - Wrapped<
int?> ? quantity, - Wrapped<
double?> ? totalTax, - Wrapped<
double?> ? subtotal, - Wrapped<
ShopifySharpPriceSet?> ? subtotalSet, - Wrapped<
ShopifySharpPriceSet?> ? totalTaxSet, - Wrapped<
String?> ? restockType, - Wrapped<
int?> ? locationId, - Wrapped<
int?> ? id, - Wrapped<
String?> ? adminGraphqlApiId,
Implementation
ShopifySharpRefundLineItem copyWithWrapped({
Wrapped<ShopifySharpLineItem?>? lineItem,
Wrapped<int?>? lineItemId,
Wrapped<int?>? quantity,
Wrapped<double?>? totalTax,
Wrapped<double?>? subtotal,
Wrapped<ShopifySharpPriceSet?>? subtotalSet,
Wrapped<ShopifySharpPriceSet?>? totalTaxSet,
Wrapped<String?>? restockType,
Wrapped<int?>? locationId,
Wrapped<int?>? id,
Wrapped<String?>? adminGraphqlApiId,
}) {
return ShopifySharpRefundLineItem(
lineItem: (lineItem != null ? lineItem.value : this.lineItem),
lineItemId: (lineItemId != null ? lineItemId.value : this.lineItemId),
quantity: (quantity != null ? quantity.value : this.quantity),
totalTax: (totalTax != null ? totalTax.value : this.totalTax),
subtotal: (subtotal != null ? subtotal.value : this.subtotal),
subtotalSet: (subtotalSet != null ? subtotalSet.value : this.subtotalSet),
totalTaxSet: (totalTaxSet != null ? totalTaxSet.value : this.totalTaxSet),
restockType: (restockType != null ? restockType.value : this.restockType),
locationId: (locationId != null ? locationId.value : this.locationId),
id: (id != null ? id.value : this.id),
adminGraphqlApiId: (adminGraphqlApiId != null
? adminGraphqlApiId.value
: this.adminGraphqlApiId),
);
}