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