copyWith method

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

Implementation

ShopifySharpLineItemDuty copyWith({
  String? harmonizedSystemCode,
  String? countryCodeOfOrigin,
  ShopifySharpPriceSet? priceSet,
  List<ShopifySharpTaxLine>? taxLines,
  int? id,
  String? adminGraphqlApiId,
}) {
  return ShopifySharpLineItemDuty(
    harmonizedSystemCode: harmonizedSystemCode ?? this.harmonizedSystemCode,
    countryCodeOfOrigin: countryCodeOfOrigin ?? this.countryCodeOfOrigin,
    priceSet: priceSet ?? this.priceSet,
    taxLines: taxLines ?? this.taxLines,
    id: id ?? this.id,
    adminGraphqlApiId: adminGraphqlApiId ?? this.adminGraphqlApiId,
  );
}