copyWithWrapped method

ShopifySharpLineItem copyWithWrapped({
  1. Wrapped<int?>? fulfillableQuantity,
  2. Wrapped<String?>? fulfillmentService,
  3. Wrapped<String?>? fulfillmentStatus,
  4. Wrapped<int?>? grams,
  5. Wrapped<double?>? price,
  6. Wrapped<int?>? productId,
  7. Wrapped<int?>? quantity,
  8. Wrapped<bool?>? requiresShipping,
  9. Wrapped<String?>? sku,
  10. Wrapped<String?>? title,
  11. Wrapped<int?>? variantId,
  12. Wrapped<String?>? variantTitle,
  13. Wrapped<String?>? name,
  14. Wrapped<String?>? vendor,
  15. Wrapped<bool?>? giftCard,
  16. Wrapped<bool?>? taxable,
  17. Wrapped<List<ShopifySharpTaxLine>?>? taxLines,
  18. Wrapped<String?>? tipPaymentGateway,
  19. Wrapped<String?>? tipPaymentMethod,
  20. Wrapped<double?>? totalDiscount,
  21. Wrapped<ShopifySharpPriceSet?>? totalDiscountSet,
  22. Wrapped<List<ShopifySharpDiscountAllocation>?>? discountAllocations,
  23. Wrapped<List<ShopifySharpLineItemProperty>?>? properties,
  24. Wrapped<String?>? variantInventoryManagement,
  25. Wrapped<bool?>? productExists,
  26. Wrapped<ShopifySharpPriceSet?>? priceSet,
  27. Wrapped<double?>? preTaxPrice,
  28. Wrapped<ShopifySharpPriceSet?>? preTaxPriceSet,
  29. Wrapped<List<ShopifySharpLineItemDuty>?>? duties,
  30. Wrapped<int?>? fulfillmentLineItemId,
  31. Wrapped<List<ShopifySharpLineItemAttributedStaff>?>? attributedStaffs,
  32. Wrapped<int?>? id,
  33. Wrapped<String?>? adminGraphqlApiId,
})

Implementation

ShopifySharpLineItem copyWithWrapped({
  Wrapped<int?>? fulfillableQuantity,
  Wrapped<String?>? fulfillmentService,
  Wrapped<String?>? fulfillmentStatus,
  Wrapped<int?>? grams,
  Wrapped<double?>? price,
  Wrapped<int?>? productId,
  Wrapped<int?>? quantity,
  Wrapped<bool?>? requiresShipping,
  Wrapped<String?>? sku,
  Wrapped<String?>? title,
  Wrapped<int?>? variantId,
  Wrapped<String?>? variantTitle,
  Wrapped<String?>? name,
  Wrapped<String?>? vendor,
  Wrapped<bool?>? giftCard,
  Wrapped<bool?>? taxable,
  Wrapped<List<ShopifySharpTaxLine>?>? taxLines,
  Wrapped<String?>? tipPaymentGateway,
  Wrapped<String?>? tipPaymentMethod,
  Wrapped<double?>? totalDiscount,
  Wrapped<ShopifySharpPriceSet?>? totalDiscountSet,
  Wrapped<List<ShopifySharpDiscountAllocation>?>? discountAllocations,
  Wrapped<List<ShopifySharpLineItemProperty>?>? properties,
  Wrapped<String?>? variantInventoryManagement,
  Wrapped<bool?>? productExists,
  Wrapped<ShopifySharpPriceSet?>? priceSet,
  Wrapped<double?>? preTaxPrice,
  Wrapped<ShopifySharpPriceSet?>? preTaxPriceSet,
  Wrapped<List<ShopifySharpLineItemDuty>?>? duties,
  Wrapped<int?>? fulfillmentLineItemId,
  Wrapped<List<ShopifySharpLineItemAttributedStaff>?>? attributedStaffs,
  Wrapped<int?>? id,
  Wrapped<String?>? adminGraphqlApiId,
}) {
  return ShopifySharpLineItem(
    fulfillableQuantity: (fulfillableQuantity != null
        ? fulfillableQuantity.value
        : this.fulfillableQuantity),
    fulfillmentService: (fulfillmentService != null
        ? fulfillmentService.value
        : this.fulfillmentService),
    fulfillmentStatus: (fulfillmentStatus != null
        ? fulfillmentStatus.value
        : this.fulfillmentStatus),
    grams: (grams != null ? grams.value : this.grams),
    price: (price != null ? price.value : this.price),
    productId: (productId != null ? productId.value : this.productId),
    quantity: (quantity != null ? quantity.value : this.quantity),
    requiresShipping: (requiresShipping != null
        ? requiresShipping.value
        : this.requiresShipping),
    sku: (sku != null ? sku.value : this.sku),
    title: (title != null ? title.value : this.title),
    variantId: (variantId != null ? variantId.value : this.variantId),
    variantTitle: (variantTitle != null
        ? variantTitle.value
        : this.variantTitle),
    name: (name != null ? name.value : this.name),
    vendor: (vendor != null ? vendor.value : this.vendor),
    giftCard: (giftCard != null ? giftCard.value : this.giftCard),
    taxable: (taxable != null ? taxable.value : this.taxable),
    taxLines: (taxLines != null ? taxLines.value : this.taxLines),
    tipPaymentGateway: (tipPaymentGateway != null
        ? tipPaymentGateway.value
        : this.tipPaymentGateway),
    tipPaymentMethod: (tipPaymentMethod != null
        ? tipPaymentMethod.value
        : this.tipPaymentMethod),
    totalDiscount: (totalDiscount != null
        ? totalDiscount.value
        : this.totalDiscount),
    totalDiscountSet: (totalDiscountSet != null
        ? totalDiscountSet.value
        : this.totalDiscountSet),
    discountAllocations: (discountAllocations != null
        ? discountAllocations.value
        : this.discountAllocations),
    properties: (properties != null ? properties.value : this.properties),
    variantInventoryManagement: (variantInventoryManagement != null
        ? variantInventoryManagement.value
        : this.variantInventoryManagement),
    productExists: (productExists != null
        ? productExists.value
        : this.productExists),
    priceSet: (priceSet != null ? priceSet.value : this.priceSet),
    preTaxPrice: (preTaxPrice != null ? preTaxPrice.value : this.preTaxPrice),
    preTaxPriceSet: (preTaxPriceSet != null
        ? preTaxPriceSet.value
        : this.preTaxPriceSet),
    duties: (duties != null ? duties.value : this.duties),
    fulfillmentLineItemId: (fulfillmentLineItemId != null
        ? fulfillmentLineItemId.value
        : this.fulfillmentLineItemId),
    attributedStaffs: (attributedStaffs != null
        ? attributedStaffs.value
        : this.attributedStaffs),
    id: (id != null ? id.value : this.id),
    adminGraphqlApiId: (adminGraphqlApiId != null
        ? adminGraphqlApiId.value
        : this.adminGraphqlApiId),
  );
}