getDocument method

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));
}