copyWithWrapped method
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),
);
}