copyWithWrapped method

StorefrontPackageItem copyWithWrapped({
  1. Wrapped<List<WebApiModulesIntegrationsStorefrontProductImage>?>? images,
  2. Wrapped<int?>? productId,
  3. Wrapped<String?>? inventoryPackageInventoryId,
  4. Wrapped<String?>? iCode,
  5. Wrapped<String?>? description,
  6. Wrapped<String?>? inventoryId,
  7. Wrapped<bool?>? isPrimary,
  8. Wrapped<double?>? defaultQuantity,
  9. Wrapped<String?>? defaultQuantityColor,
  10. Wrapped<bool?>? isOption,
  11. Wrapped<bool?>? charge,
  12. Wrapped<bool?>? noChargePrint,
  13. Wrapped<bool?>? isRequired,
  14. Wrapped<String?>? optionColor,
  15. Wrapped<String?>? itemClass,
  16. Wrapped<String?>? itemTrackedBy,
  17. Wrapped<String?>? availFor,
  18. Wrapped<String?>? availFrom,
  19. Wrapped<double?>? orderBy,
  20. Wrapped<String?>? itemColor,
  21. Wrapped<String?>? isNestedComplete,
  22. Wrapped<String?>? inactive,
  23. Wrapped<String?>? warehouseId,
  24. Wrapped<String?>? parentId,
  25. Wrapped<String?>? packageItemClass,
  26. Wrapped<String?>? itemNonDiscountable,
  27. Wrapped<String?>? primaryInventoryId,
  28. Wrapped<String?>? unitId,
  29. Wrapped<String?>? packageId,
  30. Wrapped<WebApiModulesIntegrationsStorefrontProductAvailability?>? availability,
  31. Wrapped<double?>? dailyRate,
  32. Wrapped<double?>? weeklyRate,
  33. Wrapped<double?>? monthlyRate,
  34. Wrapped<double?>? dailyExtended,
  35. Wrapped<double?>? weeklyExtended,
  36. Wrapped<double?>? monthlyExtended,
  37. Wrapped<double?>? salesPrice,
  38. Wrapped<double?>? retail,
  39. Wrapped<String?>? currencyId,
  40. Wrapped<String?>? currencyCode,
  41. Wrapped<String?>? currencySymbol,
  42. Wrapped<String?>? dateStamp,
})

Implementation

StorefrontPackageItem copyWithWrapped({
  Wrapped<List<WebApiModulesIntegrationsStorefrontProductImage>?>? images,
  Wrapped<int?>? productId,
  Wrapped<String?>? inventoryPackageInventoryId,
  Wrapped<String?>? iCode,
  Wrapped<String?>? description,
  Wrapped<String?>? inventoryId,
  Wrapped<bool?>? isPrimary,
  Wrapped<double?>? defaultQuantity,
  Wrapped<String?>? defaultQuantityColor,
  Wrapped<bool?>? isOption,
  Wrapped<bool?>? charge,
  Wrapped<bool?>? noChargePrint,
  Wrapped<bool?>? isRequired,
  Wrapped<String?>? optionColor,
  Wrapped<String?>? itemClass,
  Wrapped<String?>? itemTrackedBy,
  Wrapped<String?>? availFor,
  Wrapped<String?>? availFrom,
  Wrapped<double?>? orderBy,
  Wrapped<String?>? itemColor,
  Wrapped<String?>? isNestedComplete,
  Wrapped<String?>? inactive,
  Wrapped<String?>? warehouseId,
  Wrapped<String?>? parentId,
  Wrapped<String?>? packageItemClass,
  Wrapped<String?>? itemNonDiscountable,
  Wrapped<String?>? primaryInventoryId,
  Wrapped<String?>? unitId,
  Wrapped<String?>? packageId,
  Wrapped<WebApiModulesIntegrationsStorefrontProductAvailability?>?
  availability,
  Wrapped<double?>? dailyRate,
  Wrapped<double?>? weeklyRate,
  Wrapped<double?>? monthlyRate,
  Wrapped<double?>? dailyExtended,
  Wrapped<double?>? weeklyExtended,
  Wrapped<double?>? monthlyExtended,
  Wrapped<double?>? salesPrice,
  Wrapped<double?>? retail,
  Wrapped<String?>? currencyId,
  Wrapped<String?>? currencyCode,
  Wrapped<String?>? currencySymbol,
  Wrapped<String?>? dateStamp,
}) {
  return StorefrontPackageItem(
    images: (images != null ? images.value : this.images),
    productId: (productId != null ? productId.value : this.productId),
    inventoryPackageInventoryId: (inventoryPackageInventoryId != null
        ? inventoryPackageInventoryId.value
        : this.inventoryPackageInventoryId),
    iCode: (iCode != null ? iCode.value : this.iCode),
    description: (description != null ? description.value : this.description),
    inventoryId: (inventoryId != null ? inventoryId.value : this.inventoryId),
    isPrimary: (isPrimary != null ? isPrimary.value : this.isPrimary),
    defaultQuantity: (defaultQuantity != null
        ? defaultQuantity.value
        : this.defaultQuantity),
    defaultQuantityColor: (defaultQuantityColor != null
        ? defaultQuantityColor.value
        : this.defaultQuantityColor),
    isOption: (isOption != null ? isOption.value : this.isOption),
    charge: (charge != null ? charge.value : this.charge),
    noChargePrint: (noChargePrint != null
        ? noChargePrint.value
        : this.noChargePrint),
    isRequired: (isRequired != null ? isRequired.value : this.isRequired),
    optionColor: (optionColor != null ? optionColor.value : this.optionColor),
    itemClass: (itemClass != null ? itemClass.value : this.itemClass),
    itemTrackedBy: (itemTrackedBy != null
        ? itemTrackedBy.value
        : this.itemTrackedBy),
    availFor: (availFor != null ? availFor.value : this.availFor),
    availFrom: (availFrom != null ? availFrom.value : this.availFrom),
    orderBy: (orderBy != null ? orderBy.value : this.orderBy),
    itemColor: (itemColor != null ? itemColor.value : this.itemColor),
    isNestedComplete: (isNestedComplete != null
        ? isNestedComplete.value
        : this.isNestedComplete),
    inactive: (inactive != null ? inactive.value : this.inactive),
    warehouseId: (warehouseId != null ? warehouseId.value : this.warehouseId),
    parentId: (parentId != null ? parentId.value : this.parentId),
    packageItemClass: (packageItemClass != null
        ? packageItemClass.value
        : this.packageItemClass),
    itemNonDiscountable: (itemNonDiscountable != null
        ? itemNonDiscountable.value
        : this.itemNonDiscountable),
    primaryInventoryId: (primaryInventoryId != null
        ? primaryInventoryId.value
        : this.primaryInventoryId),
    unitId: (unitId != null ? unitId.value : this.unitId),
    packageId: (packageId != null ? packageId.value : this.packageId),
    availability: (availability != null
        ? availability.value
        : this.availability),
    dailyRate: (dailyRate != null ? dailyRate.value : this.dailyRate),
    weeklyRate: (weeklyRate != null ? weeklyRate.value : this.weeklyRate),
    monthlyRate: (monthlyRate != null ? monthlyRate.value : this.monthlyRate),
    dailyExtended: (dailyExtended != null
        ? dailyExtended.value
        : this.dailyExtended),
    weeklyExtended: (weeklyExtended != null
        ? weeklyExtended.value
        : this.weeklyExtended),
    monthlyExtended: (monthlyExtended != null
        ? monthlyExtended.value
        : this.monthlyExtended),
    salesPrice: (salesPrice != null ? salesPrice.value : this.salesPrice),
    retail: (retail != null ? retail.value : this.retail),
    currencyId: (currencyId != null ? currencyId.value : this.currencyId),
    currencyCode: (currencyCode != null
        ? currencyCode.value
        : this.currencyCode),
    currencySymbol: (currencySymbol != null
        ? currencySymbol.value
        : this.currencySymbol),
    dateStamp: (dateStamp != null ? dateStamp.value : this.dateStamp),
  );
}