getPatients method

Future<List<EncryptedPatient>> getPatients(
  1. String sdkId,
  2. List<String> patientIds
)

Implementation

Future<List<EncryptedPatient>> getPatients(String sdkId, List<String> patientIds) async {
	final res = await _methodChannel.invokeMethod<String>(
		'PatientBasicApi.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();
}