findByHCPartyFormId method

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

Implementation

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