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