getHeathElements method

Implementation

Future<List<DecryptedHealthElementDto>?> getHeathElements(UserDto user, List<String> healthElementIds,
    CryptoConfig<DecryptedHealthElementDto, HealthElementDto> config) async {
  final List<HealthElementDto>? encryptedHealthElements = await this.rawGetHealthElements(ListOfIdsDto(ids: healthElementIds));
  return encryptedHealthElements != null
      ? await Future.wait(
      encryptedHealthElements.map((encryptedHealthElement) => config.decryptHealthElement(user.dataOwnerId()!, encryptedHealthElement)))
      : null;
}