copyWithWrapped method

ShopifySharpShippingLine copyWithWrapped({
  1. Wrapped<String?>? carrierIdentifier,
  2. Wrapped<String?>? code,
  3. Wrapped<bool?>? isRemoved,
  4. Wrapped<String?>? phone,
  5. Wrapped<double?>? price,
  6. Wrapped<double?>? discountedPrice,
  7. Wrapped<List<ShopifySharpDiscountAllocation>?>? discountAllocations,
  8. Wrapped<String?>? source,
  9. Wrapped<String?>? title,
  10. Wrapped<List<ShopifySharpTaxLine>?>? taxLines,
  11. Wrapped<ShopifySharpPriceSet?>? priceSet,
  12. Wrapped<ShopifySharpPriceSet?>? discountedPriceSet,
  13. Wrapped<int?>? id,
  14. Wrapped<String?>? adminGraphqlApiId,
})

Implementation

ShopifySharpShippingLine copyWithWrapped({
  Wrapped<String?>? carrierIdentifier,
  Wrapped<String?>? code,
  Wrapped<bool?>? isRemoved,
  Wrapped<String?>? phone,
  Wrapped<double?>? price,
  Wrapped<double?>? discountedPrice,
  Wrapped<List<ShopifySharpDiscountAllocation>?>? discountAllocations,
  Wrapped<String?>? source,
  Wrapped<String?>? title,
  Wrapped<List<ShopifySharpTaxLine>?>? taxLines,
  Wrapped<ShopifySharpPriceSet?>? priceSet,
  Wrapped<ShopifySharpPriceSet?>? discountedPriceSet,
  Wrapped<int?>? id,
  Wrapped<String?>? adminGraphqlApiId,
}) {
  return ShopifySharpShippingLine(
    carrierIdentifier: (carrierIdentifier != null
        ? carrierIdentifier.value
        : this.carrierIdentifier),
    code: (code != null ? code.value : this.code),
    isRemoved: (isRemoved != null ? isRemoved.value : this.isRemoved),
    phone: (phone != null ? phone.value : this.phone),
    price: (price != null ? price.value : this.price),
    discountedPrice: (discountedPrice != null
        ? discountedPrice.value
        : this.discountedPrice),
    discountAllocations: (discountAllocations != null
        ? discountAllocations.value
        : this.discountAllocations),
    source: (source != null ? source.value : this.source),
    title: (title != null ? title.value : this.title),
    taxLines: (taxLines != null ? taxLines.value : this.taxLines),
    priceSet: (priceSet != null ? priceSet.value : this.priceSet),
    discountedPriceSet: (discountedPriceSet != null
        ? discountedPriceSet.value
        : this.discountedPriceSet),
    id: (id != null ? id.value : this.id),
    adminGraphqlApiId: (adminGraphqlApiId != null
        ? adminGraphqlApiId.value
        : this.adminGraphqlApiId),
  );
}