copyWith method
WebApiModulesIntegrationsStorefrontWebCatalog
copyWith({
- String? id,
- String? name,
- String? urlName,
- String? dealId,
- String? departmentId,
- String? locationId,
- String? warehouseId,
- bool? hasRental,
- bool? hasSales,
- List<
WebApiModulesIntegrationsStorefrontWebCatalogResponseField> ? gridFields, - List<
WebApiModulesIntegrationsStorefrontWebCatalogResponseField> ? listFields, - List<
WebApiModulesIntegrationsStorefrontWebCatalogResponseField> ? detailFields, - List<
WebApiModulesIntegrationsStorefrontWebCatalogResponseField> ? shoppingCartFields, - String? images,
- String? landingPageHtml,
- List<
WebApiModulesIntegrationsStorefrontProductDepartment> ? departments, - List<
WebApiModulesIntegrationsStorefrontWebCatalogWarehouseQtyDto> ? warehousesQtys,
Implementation
WebApiModulesIntegrationsStorefrontWebCatalog copyWith({
String? id,
String? name,
String? urlName,
String? dealId,
String? departmentId,
String? locationId,
String? warehouseId,
bool? allowAddingUnavailableItems,
bool? hasRental,
bool? hasSales,
List<WebApiModulesIntegrationsStorefrontWebCatalogResponseField>?
gridFields,
List<WebApiModulesIntegrationsStorefrontWebCatalogResponseField>?
listFields,
List<WebApiModulesIntegrationsStorefrontWebCatalogResponseField>?
detailFields,
List<WebApiModulesIntegrationsStorefrontWebCatalogResponseField>?
shoppingCartFields,
String? images,
String? landingPageHtml,
List<WebApiModulesIntegrationsStorefrontProductDepartment>? departments,
List<WebApiModulesIntegrationsStorefrontWebCatalogWarehouseQtyDto>?
warehousesQtys,
}) {
return WebApiModulesIntegrationsStorefrontWebCatalog(
id: id ?? this.id,
name: name ?? this.name,
urlName: urlName ?? this.urlName,
dealId: dealId ?? this.dealId,
departmentId: departmentId ?? this.departmentId,
locationId: locationId ?? this.locationId,
warehouseId: warehouseId ?? this.warehouseId,
allowAddingUnavailableItems:
allowAddingUnavailableItems ?? this.allowAddingUnavailableItems,
hasRental: hasRental ?? this.hasRental,
hasSales: hasSales ?? this.hasSales,
gridFields: gridFields ?? this.gridFields,
listFields: listFields ?? this.listFields,
detailFields: detailFields ?? this.detailFields,
shoppingCartFields: shoppingCartFields ?? this.shoppingCartFields,
images: images ?? this.images,
landingPageHtml: landingPageHtml ?? this.landingPageHtml,
departments: departments ?? this.departments,
warehousesQtys: warehousesQtys ?? this.warehousesQtys,
);
}