modifyTopic method

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

Implementation

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