copyWithWrapped method

ShopifySharpRefundLineItem copyWithWrapped({
  1. Wrapped<ShopifySharpLineItem?>? lineItem,
  2. Wrapped<int?>? lineItemId,
  3. Wrapped<int?>? quantity,
  4. Wrapped<double?>? totalTax,
  5. Wrapped<double?>? subtotal,
  6. Wrapped<ShopifySharpPriceSet?>? subtotalSet,
  7. Wrapped<ShopifySharpPriceSet?>? totalTaxSet,
  8. Wrapped<String?>? restockType,
  9. Wrapped<int?>? locationId,
  10. Wrapped<int?>? id,
  11. 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),
  );
}