approvePendingForList static method
Future<ListOfEntityActionResultResponse>
approvePendingForList(
- HttpClient client,
- String groupId,
- GroupApplicationListRequest body
Approve all of the pending users for the given group.
Implementation
static Future<ListOfEntityActionResultResponse> approvePendingForList (
HttpClient client,
String groupId,
GroupApplicationListRequest body
) async {
final Map<String, dynamic> params = Map<String, dynamic>();
final String _groupId = '$groupId';
final HttpClientConfig config = HttpClientConfig('POST', '/GroupV2/$_groupId/Members/ApproveList/', params);
config.body = await body.asyncToJson();
config.bodyContentType = 'application/json';
final HttpResponse response = await client.request(config);
if(response.statusCode == 200) {
return ListOfEntityActionResultResponse.asyncFromJson(response.mappedBody);
}
throw Exception(response.mappedBody);
}