getPatients method

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

Implementation

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