undeleteTopic method

Future<Topic> undeleteTopic(
  1. String sdkId,
  2. Topic topic
)

Implementation

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