deleteTopics method

Future<List<DocIdentifier>> deleteTopics(
  1. String sdkId,
  2. List<Topic> topics
)

Implementation

Future<List<DocIdentifier>> deleteTopics(String sdkId, List<Topic> topics) async {
	final res = await _methodChannel.invokeMethod<String>(
		'TopicBasicApi.deleteTopics',
		{
			"sdkId": sdkId,
			"topics": jsonEncode(topics.map((x0) => Topic.encode(x0)).toList()),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method deleteTopics");
	final parsedResJson = jsonDecode(res);
	return (parsedResJson as List<dynamic>).map((x1) => DocIdentifier.fromJSON(x1) ).toList();
}