getPatient method
Implementation
Future<DecryptedPatient> getPatient(String sdkId, String entityId) async {
final res = await _methodChannel.invokeMethod<String>(
'PatientApi.getPatient',
{
"sdkId": sdkId,
"entityId": jsonEncode(entityId),
}
);
if (res == null) throw AssertionError("received null result from platform method getPatient");
final parsedResJson = jsonDecode(res);
return DecryptedPatient.fromJSON(parsedResJson);
}