import 'dart:convert'; import 'package:http/http.dart' as http; import '../talkApi.dart'; import 'getParticipantsResponse.dart'; class GetParticipants extends TalkApi { String token; GetParticipants(this.token) : super('v4/room/$token/participants', null); @override GetParticipantsResponse assemble(String raw) => GetParticipantsResponse.fromJson(jsonDecode(raw)['ocs']); @override Future request(Uri uri, Object? body, Map? headers) => http.get(uri, headers: headers); }