copyWithWrapped method

WebApiModulesSettingsInventorySettingsStorefrontOnlineCatalogItem copyWithWrapped({
  1. Wrapped<int?>? onlineCatalogItemId,
  2. Wrapped<String?>? inventoryId,
  3. Wrapped<String?>? iCode,
  4. Wrapped<String?>? description,
  5. Wrapped<bool?>? availableOnline,
  6. Wrapped<String?>? thumbnail,
  7. Wrapped<String?>? originalShow,
  8. Wrapped<double?>? ownedQuantityPercent,
  9. Wrapped<double?>? ownedQuantity,
  10. Wrapped<double?>? owned,
})

Implementation

WebApiModulesSettingsInventorySettingsStorefrontOnlineCatalogItem
copyWithWrapped({
  Wrapped<int?>? onlineCatalogItemId,
  Wrapped<String?>? inventoryId,
  Wrapped<String?>? iCode,
  Wrapped<String?>? description,
  Wrapped<bool?>? availableOnline,
  Wrapped<String?>? thumbnail,
  Wrapped<String?>? originalShow,
  Wrapped<double?>? ownedQuantityPercent,
  Wrapped<double?>? ownedQuantity,
  Wrapped<double?>? owned,
}) {
  return WebApiModulesSettingsInventorySettingsStorefrontOnlineCatalogItem(
    onlineCatalogItemId: (onlineCatalogItemId != null
        ? onlineCatalogItemId.value
        : this.onlineCatalogItemId),
    inventoryId: (inventoryId != null ? inventoryId.value : this.inventoryId),
    iCode: (iCode != null ? iCode.value : this.iCode),
    description: (description != null ? description.value : this.description),
    availableOnline: (availableOnline != null
        ? availableOnline.value
        : this.availableOnline),
    thumbnail: (thumbnail != null ? thumbnail.value : this.thumbnail),
    originalShow: (originalShow != null
        ? originalShow.value
        : this.originalShow),
    ownedQuantityPercent: (ownedQuantityPercent != null
        ? ownedQuantityPercent.value
        : this.ownedQuantityPercent),
    ownedQuantity: (ownedQuantity != null
        ? ownedQuantity.value
        : this.ownedQuantity),
    owned: (owned != null ? owned.value : this.owned),
  );
}