findByHCPartyServiceId method

Future<List<DecryptedContactDto>> findByHCPartyServiceId(
  1. UserDto user,
  2. String hcPartyId,
  3. String serviceId,
  4. CryptoConfig<DecryptedContactDto, ContactDto> config,
)

Implementation

Future<List<DecryptedContactDto>> findByHCPartyServiceId(
    UserDto user, String hcPartyId, String serviceId, CryptoConfig<DecryptedContactDto, ContactDto> config) async {
  return Future.wait(
      (await this.rawListContactByHCPartyServiceId(hcPartyId, serviceId))!.map((it) => config.decryptContact(user.dataOwnerId()!, it)));
}