getDocument method
Future<DecryptedDocumentDto?>
getDocument(
- UserDto user,
- String documentId,
- CryptoConfig<
DecryptedDocumentDto, DocumentDto> config
Implementation
Future<DecryptedDocumentDto?> getDocument(UserDto user, String documentId, CryptoConfig<DecryptedDocumentDto, DocumentDto> config) async {
return await (await this.rawGetDocument(documentId))?.let((it) => config.decryptDocument(user.dataOwnerId()!, it));
}