copyWith method

WebApiModulesSettingsInventorySettingsStorefrontToggleCatalogItemRequest copyWith({
  1. String? recType,
  2. String? departmentId,
  3. String? categoryId,
  4. String? subCategoryId,
  5. String? inventoryId,
  6. bool? enable,
})

Implementation

WebApiModulesSettingsInventorySettingsStorefrontToggleCatalogItemRequest
copyWith({
  String? recType,
  String? departmentId,
  String? categoryId,
  String? subCategoryId,
  String? inventoryId,
  bool? enable,
}) {
  return WebApiModulesSettingsInventorySettingsStorefrontToggleCatalogItemRequest(
    recType: recType ?? this.recType,
    departmentId: departmentId ?? this.departmentId,
    categoryId: categoryId ?? this.categoryId,
    subCategoryId: subCategoryId ?? this.subCategoryId,
    inventoryId: inventoryId ?? this.inventoryId,
    enable: enable ?? this.enable,
  );
}