copyWithWrapped method

ShopifySharpLineItemDuty copyWithWrapped({
  1. Wrapped<String?>? harmonizedSystemCode,
  2. Wrapped<String?>? countryCodeOfOrigin,
  3. Wrapped<ShopifySharpPriceSet?>? priceSet,
  4. Wrapped<List<ShopifySharpTaxLine>?>? taxLines,
  5. Wrapped<int?>? id,
  6. Wrapped<String?>? adminGraphqlApiId,
})

Implementation

ShopifySharpLineItemDuty copyWithWrapped({
  Wrapped<String?>? harmonizedSystemCode,
  Wrapped<String?>? countryCodeOfOrigin,
  Wrapped<ShopifySharpPriceSet?>? priceSet,
  Wrapped<List<ShopifySharpTaxLine>?>? taxLines,
  Wrapped<int?>? id,
  Wrapped<String?>? adminGraphqlApiId,
}) {
  return ShopifySharpLineItemDuty(
    harmonizedSystemCode: (harmonizedSystemCode != null
        ? harmonizedSystemCode.value
        : this.harmonizedSystemCode),
    countryCodeOfOrigin: (countryCodeOfOrigin != null
        ? countryCodeOfOrigin.value
        : this.countryCodeOfOrigin),
    priceSet: (priceSet != null ? priceSet.value : this.priceSet),
    taxLines: (taxLines != null ? taxLines.value : this.taxLines),
    id: (id != null ? id.value : this.id),
    adminGraphqlApiId: (adminGraphqlApiId != null
        ? adminGraphqlApiId.value
        : this.adminGraphqlApiId),
  );
}