newContactDelegations method

Future<DecryptedContactDto> newContactDelegations(
  1. UserDto user,
  2. String contactId,
  3. DelegationDto delegationDto,
  4. CryptoConfig<DecryptedContactDto, ContactDto> config,
)

Implementation

Future<DecryptedContactDto> newContactDelegations(
    UserDto user, String contactId, DelegationDto delegationDto, CryptoConfig<DecryptedContactDto, ContactDto> config) async {
  return await config.decryptContact(user.dataOwnerId()!, (await this.rawNewContactDelegations(contactId, delegationDto))!);
}