listParticipants method
To get a list of the participants in a specific room of roomId
Implementation
Future<List<AudioBridgeParticipants>> listParticipants(dynamic roomId) async {
var payload = {
"request": "listparticipants",
"room": roomId,
};
_handleRoomIdTypeDifference(payload);
JanusEvent response = JanusEvent.fromJson(await this.send(data: payload));
JanusError.throwErrorFromEvent(response);
return (response.plugindata?.data['participants'] as List<dynamic>)
.map((e) => AudioBridgeParticipants.fromJson(e))
.toList();
}