getAdminsAndFounderOfGroup static method

Future<SearchResultOfGroupMemberResponse> getAdminsAndFounderOfGroup(
  1. HttpClient client,
  2. int currentpage,
  3. String groupId
)

Get the list of members in a given group who are of admin level or higher.

Implementation

static Future<SearchResultOfGroupMemberResponse> getAdminsAndFounderOfGroup (
    HttpClient client,
    int currentpage,
    String groupId,
) async {
    final Map<String, dynamic> params = Map<String, dynamic>();
    final String _currentpage = '$currentpage';
    final String _groupId = '$groupId';
    final HttpClientConfig config = HttpClientConfig('GET', '/GroupV2/$_groupId/AdminsAndFounder/', params);
    config.bodyContentType = null;
    final HttpResponse response = await client.request(config);
    if(response.statusCode == 200) {
        return SearchResultOfGroupMemberResponse.asyncFromJson(response.mappedBody);
    }
    throw Exception(response.mappedBody);
}