createDelegationDeAnonymizationMetadata method
Future<void>
createDelegationDeAnonymizationMetadata(
- String sdkId,
- GroupScoped<
DecryptedPatient> entity, - Set<
EntityReferenceInGroup> delegates
Implementation
Future<void> createDelegationDeAnonymizationMetadata(String sdkId, GroupScoped<DecryptedPatient> entity, Set<EntityReferenceInGroup> delegates) async {
final res = await _methodChannel.invokeMethod<String>(
'PatientApi.inGroup.createDelegationDeAnonymizationMetadata',
{
"sdkId": sdkId,
"entity": jsonEncode(GroupScoped.encode(
entity,
(x0) {
return DecryptedPatient.encode(x0);
},
)),
"delegates": jsonEncode(delegates.map((x0) => EntityReferenceInGroup.encode(x0)).toList()),
}
).catchError(convertPlatformException);
}