modifyTopic method

Future<EncryptedTopic> modifyTopic(
  1. String sdkId,
  2. EncryptedTopic entity
)

Implementation

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