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