copyWithWrapped method
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< ? taxLines,ShopifySharpTaxLine> ?> - Wrapped<
String?> ? tipPaymentGateway, - Wrapped<
String?> ? tipPaymentMethod, - Wrapped<
double?> ? totalDiscount, - Wrapped<
ShopifySharpPriceSet?> ? totalDiscountSet, - Wrapped<
List< ? discountAllocations,ShopifySharpDiscountAllocation> ?> - Wrapped<
List< ? properties,ShopifySharpLineItemProperty> ?> - Wrapped<
String?> ? variantInventoryManagement, - Wrapped<
bool?> ? productExists, - Wrapped<
ShopifySharpPriceSet?> ? priceSet, - Wrapped<
double?> ? preTaxPrice, - Wrapped<
ShopifySharpPriceSet?> ? preTaxPriceSet, - Wrapped<
List< ? duties,ShopifySharpLineItemDuty> ?> - Wrapped<
int?> ? fulfillmentLineItemId, - Wrapped<
List< ? attributedStaffs,ShopifySharpLineItemAttributedStaff> ?> - Wrapped<
int?> ? id, - 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),
);
}