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