getSecretIdsOf method
Future<Map<String, Set<EntityReferenceInGroup> > >
getSecretIdsOf(
- String sdkId,
- GroupScoped<
Patient> patient
Implementation
Future<Map<String, Set<EntityReferenceInGroup>>> getSecretIdsOf(String sdkId, GroupScoped<Patient> patient) async {
final res = await _methodChannel.invokeMethod<String>(
'PatientApi.inGroup.getSecretIdsOf',
{
"sdkId": sdkId,
"patient": jsonEncode(GroupScoped.encode(
patient,
(x0) {
return Patient.encode(x0);
},
)),
}
).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()));
}