copyWithWrapped method

WebApiModulesExportsInvoiceBatchExportInvoiceBatchExportRequest copyWithWrapped({
  1. Wrapped<String?>? batchId,
  2. Wrapped<String?>? fromBatchNumber,
  3. Wrapped<String?>? toBatchNumber,
  4. Wrapped<DateTime?>? fromDate,
  5. Wrapped<DateTime?>? toDate,
  6. Wrapped<String?>? batchRange,
  7. Wrapped<String?>? locationId,
  8. Wrapped<String>? dataExportFormatId,
})

Implementation

WebApiModulesExportsInvoiceBatchExportInvoiceBatchExportRequest
copyWithWrapped({
  Wrapped<String?>? batchId,
  Wrapped<String?>? fromBatchNumber,
  Wrapped<String?>? toBatchNumber,
  Wrapped<DateTime?>? fromDate,
  Wrapped<DateTime?>? toDate,
  Wrapped<String?>? batchRange,
  Wrapped<String?>? locationId,
  Wrapped<String>? dataExportFormatId,
}) {
  return WebApiModulesExportsInvoiceBatchExportInvoiceBatchExportRequest(
    batchId: (batchId != null ? batchId.value : this.batchId),
    fromBatchNumber: (fromBatchNumber != null
        ? fromBatchNumber.value
        : this.fromBatchNumber),
    toBatchNumber: (toBatchNumber != null
        ? toBatchNumber.value
        : this.toBatchNumber),
    fromDate: (fromDate != null ? fromDate.value : this.fromDate),
    toDate: (toDate != null ? toDate.value : this.toDate),
    batchRange: (batchRange != null ? batchRange.value : this.batchRange),
    locationId: (locationId != null ? locationId.value : this.locationId),
    dataExportFormatId: (dataExportFormatId != null
        ? dataExportFormatId.value
        : this.dataExportFormatId),
  );
}