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