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