getSecretIdsOf method

Future<Map<String, Set<EntityReferenceInGroup>>> getSecretIdsOf(
  1. String sdkId,
  2. Patient patient
)

Implementation

Future<Map<String, Set<EntityReferenceInGroup>>> getSecretIdsOf(String sdkId, Patient patient) async {
	final res = await _methodChannel.invokeMethod<String>(
		'PatientApi.getSecretIdsOf',
		{
			"sdkId": sdkId,
			"patient": jsonEncode(Patient.encode(patient)),
		}
	).catchError(convertPlatformException);
	if (res == null) throw AssertionError("received null result from platform method getSecretIdsOf");
	final parsedResJson = jsonDecode(res);
	return (parsedResJson as Map<String, dynamic>).map((k1, v1) => MapEntry((k1 as String), (v1 as List<dynamic>).map((x2) => EntityReferenceInGroup.fromJSON(x2) ).toSet()));
}