copyWithWrapped method

Implementation

WebApiModulesIntegrationsStorefrontWebCatalog copyWithWrapped({
  Wrapped<String?>? id,
  Wrapped<String?>? name,
  Wrapped<String?>? urlName,
  Wrapped<String?>? dealId,
  Wrapped<String?>? departmentId,
  Wrapped<String?>? locationId,
  Wrapped<String?>? warehouseId,
  Wrapped<bool?>? allowAddingUnavailableItems,
  Wrapped<bool?>? hasRental,
  Wrapped<bool?>? hasSales,
  Wrapped<List<WebApiModulesIntegrationsStorefrontWebCatalogResponseField>?>?
  gridFields,
  Wrapped<List<WebApiModulesIntegrationsStorefrontWebCatalogResponseField>?>?
  listFields,
  Wrapped<List<WebApiModulesIntegrationsStorefrontWebCatalogResponseField>?>?
  detailFields,
  Wrapped<List<WebApiModulesIntegrationsStorefrontWebCatalogResponseField>?>?
  shoppingCartFields,
  Wrapped<String?>? images,
  Wrapped<String?>? landingPageHtml,
  Wrapped<List<WebApiModulesIntegrationsStorefrontProductDepartment>?>?
  departments,
}) {
  return WebApiModulesIntegrationsStorefrontWebCatalog(
    id: (id != null ? id.value : this.id),
    name: (name != null ? name.value : this.name),
    urlName: (urlName != null ? urlName.value : this.urlName),
    dealId: (dealId != null ? dealId.value : this.dealId),
    departmentId: (departmentId != null
        ? departmentId.value
        : this.departmentId),
    locationId: (locationId != null ? locationId.value : this.locationId),
    warehouseId: (warehouseId != null ? warehouseId.value : this.warehouseId),
    allowAddingUnavailableItems: (allowAddingUnavailableItems != null
        ? allowAddingUnavailableItems.value
        : this.allowAddingUnavailableItems),
    hasRental: (hasRental != null ? hasRental.value : this.hasRental),
    hasSales: (hasSales != null ? hasSales.value : this.hasSales),
    gridFields: (gridFields != null ? gridFields.value : this.gridFields),
    listFields: (listFields != null ? listFields.value : this.listFields),
    detailFields: (detailFields != null
        ? detailFields.value
        : this.detailFields),
    shoppingCartFields: (shoppingCartFields != null
        ? shoppingCartFields.value
        : this.shoppingCartFields),
    images: (images != null ? images.value : this.images),
    landingPageHtml: (landingPageHtml != null
        ? landingPageHtml.value
        : this.landingPageHtml),
    departments: (departments != null ? departments.value : this.departments),
  );
}