copyWith method

WebApiModulesHomeControlsInventorySearchInventorySearchRequest copyWith({
  1. String? sessionId,
  2. String? orderId,
  3. String? availableFor,
  4. String? warehouseId,
  5. String? languageId,
  6. String? currencyId,
  7. String? inventoryTypeId,
  8. String? categoryId,
  9. String? subCategoryId,
  10. String? classification,
  11. String? searchText,
  12. String? attributeId,
  13. String? attributeValueId,
  14. String? attributeValueRange,
  15. bool? showAvailability,
  16. DateTime? fromDate,
  17. String? fromTime,
  18. DateTime? toDate,
  19. String? toTime,
  20. bool? showImages,
  21. bool? hideInventoryWithZeroQuantity,
  22. String? sortBy,
  23. List<FwStandardModelsCheckBoxListItem>? excelFields,
})

Implementation

WebApiModulesHomeControlsInventorySearchInventorySearchRequest copyWith(
    {String? sessionId,
    String? orderId,
    String? availableFor,
    String? warehouseId,
    String? languageId,
    String? currencyId,
    String? inventoryTypeId,
    String? categoryId,
    String? subCategoryId,
    String? classification,
    String? searchText,
    String? attributeId,
    String? attributeValueId,
    String? attributeValueRange,
    bool? showAvailability,
    DateTime? fromDate,
    String? fromTime,
    DateTime? toDate,
    String? toTime,
    bool? showImages,
    bool? hideInventoryWithZeroQuantity,
    String? sortBy,
    List<FwStandardModelsCheckBoxListItem>? excelFields}) {
  return WebApiModulesHomeControlsInventorySearchInventorySearchRequest(
      sessionId: sessionId ?? this.sessionId,
      orderId: orderId ?? this.orderId,
      availableFor: availableFor ?? this.availableFor,
      warehouseId: warehouseId ?? this.warehouseId,
      languageId: languageId ?? this.languageId,
      currencyId: currencyId ?? this.currencyId,
      inventoryTypeId: inventoryTypeId ?? this.inventoryTypeId,
      categoryId: categoryId ?? this.categoryId,
      subCategoryId: subCategoryId ?? this.subCategoryId,
      classification: classification ?? this.classification,
      searchText: searchText ?? this.searchText,
      attributeId: attributeId ?? this.attributeId,
      attributeValueId: attributeValueId ?? this.attributeValueId,
      attributeValueRange: attributeValueRange ?? this.attributeValueRange,
      showAvailability: showAvailability ?? this.showAvailability,
      fromDate: fromDate ?? this.fromDate,
      fromTime: fromTime ?? this.fromTime,
      toDate: toDate ?? this.toDate,
      toTime: toTime ?? this.toTime,
      showImages: showImages ?? this.showImages,
      hideInventoryWithZeroQuantity:
          hideInventoryWithZeroQuantity ?? this.hideInventoryWithZeroQuantity,
      sortBy: sortBy ?? this.sortBy,
      excelFields: excelFields ?? this.excelFields);
}