copyWithWrapped method

WebApiModulesAgentOrderCreatePoWorksheetSessionRequest copyWithWrapped({
  1. Wrapped<String?>? orderId,
  2. Wrapped<String?>? recType,
  3. Wrapped<String?>? vendorId,
  4. Wrapped<String?>? contactId,
  5. Wrapped<String?>? rateType,
  6. Wrapped<String?>? currencyId,
  7. Wrapped<String?>? billingCycleId,
  8. Wrapped<DateTime?>? requiredDate,
  9. Wrapped<String?>? requiredTime,
  10. Wrapped<DateTime?>? fromDate,
  11. Wrapped<DateTime?>? toDate,
  12. Wrapped<String?>? deliveryId,
  13. Wrapped<bool?>? adjustContractDates,
  14. Wrapped<String?>? poTypeId,
  15. Wrapped<String?>? warehouseIds,
})

Implementation

WebApiModulesAgentOrderCreatePoWorksheetSessionRequest copyWithWrapped({
  Wrapped<String?>? orderId,
  Wrapped<String?>? recType,
  Wrapped<String?>? vendorId,
  Wrapped<String?>? contactId,
  Wrapped<String?>? rateType,
  Wrapped<String?>? currencyId,
  Wrapped<String?>? billingCycleId,
  Wrapped<DateTime?>? requiredDate,
  Wrapped<String?>? requiredTime,
  Wrapped<DateTime?>? fromDate,
  Wrapped<DateTime?>? toDate,
  Wrapped<String?>? deliveryId,
  Wrapped<bool?>? adjustContractDates,
  Wrapped<String?>? poTypeId,
  Wrapped<String?>? warehouseIds,
}) {
  return WebApiModulesAgentOrderCreatePoWorksheetSessionRequest(
    orderId: (orderId != null ? orderId.value : this.orderId),
    recType: (recType != null ? recType.value : this.recType),
    vendorId: (vendorId != null ? vendorId.value : this.vendorId),
    contactId: (contactId != null ? contactId.value : this.contactId),
    rateType: (rateType != null ? rateType.value : this.rateType),
    currencyId: (currencyId != null ? currencyId.value : this.currencyId),
    billingCycleId: (billingCycleId != null
        ? billingCycleId.value
        : this.billingCycleId),
    requiredDate: (requiredDate != null
        ? requiredDate.value
        : this.requiredDate),
    requiredTime: (requiredTime != null
        ? requiredTime.value
        : this.requiredTime),
    fromDate: (fromDate != null ? fromDate.value : this.fromDate),
    toDate: (toDate != null ? toDate.value : this.toDate),
    deliveryId: (deliveryId != null ? deliveryId.value : this.deliveryId),
    adjustContractDates: (adjustContractDates != null
        ? adjustContractDates.value
        : this.adjustContractDates),
    poTypeId: (poTypeId != null ? poTypeId.value : this.poTypeId),
    warehouseIds: (warehouseIds != null
        ? warehouseIds.value
        : this.warehouseIds),
  );
}