copyWith method

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

Implementation

WebApiModulesExportsInvoiceBatchExportInvoiceBatchExportRequest copyWith({
  String? batchId,
  String? fromBatchNumber,
  String? toBatchNumber,
  DateTime? fromDate,
  DateTime? toDate,
  String? batchRange,
  String? locationId,
  String? dataExportFormatId,
}) {
  return WebApiModulesExportsInvoiceBatchExportInvoiceBatchExportRequest(
    batchId: batchId ?? this.batchId,
    fromBatchNumber: fromBatchNumber ?? this.fromBatchNumber,
    toBatchNumber: toBatchNumber ?? this.toBatchNumber,
    fromDate: fromDate ?? this.fromDate,
    toDate: toDate ?? this.toDate,
    batchRange: batchRange ?? this.batchRange,
    locationId: locationId ?? this.locationId,
    dataExportFormatId: dataExportFormatId ?? this.dataExportFormatId,
  );
}