copyWith method

WebApiModulesAgentScheduleBarCodeReservationDataRequest copyWith({
  1. String? inventoryId,
  2. String? warehouseId,
  3. String? regionId,
  4. DateTime? start,
  5. DateTime? end,
  6. bool? includeHours,
  7. bool? yearView,
  8. String? sortReservationsBy,
  9. bool? excludeConsigned,
  10. bool? consignedOnly,
  11. String? departmentId,
  12. String? dealId,
  13. String? orderId,
  14. String? consignorId,
  15. List<String>? filterReservationsBy,
  16. bool? includeUnreserved,
})

Implementation

WebApiModulesAgentScheduleBarCodeReservationDataRequest copyWith({
  String? inventoryId,
  String? warehouseId,
  String? regionId,
  DateTime? start,
  DateTime? end,
  bool? includeHours,
  bool? yearView,
  String? sortReservationsBy,
  bool? excludeConsigned,
  bool? consignedOnly,
  String? departmentId,
  String? dealId,
  String? orderId,
  String? consignorId,
  List<String>? filterReservationsBy,
  bool? includeUnreserved,
}) {
  return WebApiModulesAgentScheduleBarCodeReservationDataRequest(
    inventoryId: inventoryId ?? this.inventoryId,
    warehouseId: warehouseId ?? this.warehouseId,
    regionId: regionId ?? this.regionId,
    start: start ?? this.start,
    end: end ?? this.end,
    includeHours: includeHours ?? this.includeHours,
    yearView: yearView ?? this.yearView,
    sortReservationsBy: sortReservationsBy ?? this.sortReservationsBy,
    excludeConsigned: excludeConsigned ?? this.excludeConsigned,
    consignedOnly: consignedOnly ?? this.consignedOnly,
    departmentId: departmentId ?? this.departmentId,
    dealId: dealId ?? this.dealId,
    orderId: orderId ?? this.orderId,
    consignorId: consignorId ?? this.consignorId,
    filterReservationsBy: filterReservationsBy ?? this.filterReservationsBy,
    includeUnreserved: includeUnreserved ?? this.includeUnreserved,
  );
}