deleteTopic method

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

Implementation

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