getDocumentsByExternalUuid method

Future<List<DecryptedDocumentDto>> getDocumentsByExternalUuid(
  1. UserDto user,
  2. String externalUuid,
  3. CryptoConfig<DecryptedDocumentDto, DocumentDto> config
)

Implementation

Future<List<DecryptedDocumentDto>> getDocumentsByExternalUuid(UserDto user, String externalUuid, CryptoConfig<DecryptedDocumentDto, DocumentDto> config) async {
  return Future.wait((await this.rawGetDocumentsByExternalUuid(externalUuid))!.map((it) => config.decryptDocument(user.dataOwnerId()!, it)));
}