setContactsDelegations method

Future<List<DecryptedContactDto>> setContactsDelegations(
  1. UserDto user,
  2. List<IcureStubDto> icureStubDto,
  3. CryptoConfig<DecryptedContactDto, ContactDto> config
)

Implementation

Future<List<DecryptedContactDto>> setContactsDelegations(
    UserDto user, List<IcureStubDto> icureStubDto, CryptoConfig<DecryptedContactDto, ContactDto> config) async {
  return Future.wait((await this.rawSetContactsDelegations(icureStubDto))!.map((c) => config.decryptContact(user.dataOwnerId()!, c)));
}