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