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