listPlayers method
List all players in the current session.
Implementation
Future<List<Player>> listPlayers() async {
final response = jsonDecode(await _executeSafe('GET', '/v4/sessions/${connection.sessionId}/players'));
return (response as List).cast<Map<String, Object?>>().map(Player.fromJson).toList();
}