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