copyWithWrapped method

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

Implementation

WebApiModulesSettingsInventorySettingsStorefrontToggleCatalogItemRequest
copyWithWrapped({
  Wrapped<String?>? recType,
  Wrapped<String?>? departmentId,
  Wrapped<String?>? categoryId,
  Wrapped<String?>? subCategoryId,
  Wrapped<String?>? inventoryId,
  Wrapped<bool?>? enable,
}) {
  return WebApiModulesSettingsInventorySettingsStorefrontToggleCatalogItemRequest(
    recType: (recType != null ? recType.value : this.recType),
    departmentId: (departmentId != null
        ? departmentId.value
        : this.departmentId),
    categoryId: (categoryId != null ? categoryId.value : this.categoryId),
    subCategoryId: (subCategoryId != null
        ? subCategoryId.value
        : this.subCategoryId),
    inventoryId: (inventoryId != null ? inventoryId.value : this.inventoryId),
    enable: (enable != null ? enable.value : this.enable),
  );
}