persist method
Implementation
@override
Future<void> persist(List<Document> docs) async {
// Marshall file persist documents to be sent to and persisted by the worker isolate.
final data = docs.map((doc) => doc.toPersistenceDoc()).toList();
await _sendMessage(PersistMessageRequest(data: data));
}