copyWithWrapped method

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

Implementation

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