modifyPatientsMinimal method
Future<List<GroupScoped<StoredDocumentIdentifier> > >
modifyPatientsMinimal(
- String sdkId,
- List<
GroupScoped< patientsEncryptedPatient> >
Implementation
Future<List<GroupScoped<StoredDocumentIdentifier>>> modifyPatientsMinimal(String sdkId, List<GroupScoped<EncryptedPatient>> patients) async {
final res = await _methodChannel.invokeMethod<String>(
'PatientBasicApi.inGroup.modifyPatientsMinimal',
{
"sdkId": sdkId,
"patients": jsonEncode(patients.map((x0) => GroupScoped.encode(
x0,
(x1) {
return EncryptedPatient.encode(x1);
},
)).toList()),
}
).catchError(convertPlatformException);
if (res == null) throw AssertionError("received null result from platform method modifyPatientsMinimal");
final parsedResJson = jsonDecode(res);
return (parsedResJson as List<dynamic>).map((x1) => GroupScoped.fromJSON(
x1,
(x2) {
return StoredDocumentIdentifier.fromJSON(x2);
},
) ).toList();
}