decrypt method
Implementation
Future<List<DecryptedPatient>> decrypt(String sdkId, List<EncryptedPatient> patients) async {
final res = await _methodChannel.invokeMethod<String>(
'PatientApi.decrypt',
{
"sdkId": sdkId,
"patients": jsonEncode(patients.map((x0) => EncryptedPatient.encode(x0)).toList()),
}
).catchError(convertPlatformException);
if (res == null) throw AssertionError("received null result from platform method decrypt");
final parsedResJson = jsonDecode(res);
return (parsedResJson as List<dynamic>).map((x1) => DecryptedPatient.fromJSON(x1) ).toList();
}