copyWith method

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

Implementation

WebApiModulesHomeControlsInventorySearchInventorySearchRequest copyWith(
    {String? sessionId,
    String? orderId,
    String? availableFor,
    String? warehouseId,
    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}) {
  return WebApiModulesHomeControlsInventorySearchInventorySearchRequest(
      sessionId: sessionId ?? this.sessionId,
      orderId: orderId ?? this.orderId,
      availableFor: availableFor ?? this.availableFor,
      warehouseId: warehouseId ?? this.warehouseId,
      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);
}