decryptPatientIdOf method

Future<Set<EntityReferenceInGroup>> decryptPatientIdOf(
  1. String sdkId,
  2. GroupScoped<HealthElement> healthElement
)

Implementation

Future<Set<EntityReferenceInGroup>> decryptPatientIdOf(String sdkId, GroupScoped<HealthElement> healthElement) async {
	final res = await _methodChannel.invokeMethod<String>(
		'HealthElementApi.inGroup.decryptPatientIdOf',
		{
			"sdkId": sdkId,
			"healthElement": jsonEncode(GroupScoped.encode(
				healthElement,
				(x0) {
					return HealthElement.encode(x0);
				},
			)),
		}
	).catchError(convertPlatformException);
	if (res == null) throw AssertionError("received null result from platform method decryptPatientIdOf");
	final parsedResJson = jsonDecode(res);
	return (parsedResJson as List<dynamic>).map((x1) => EntityReferenceInGroup.fromJSON(x1) ).toSet();
}