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