getGroup static method
Get information about a specific group of the given ID.
Implementation
static Future<GroupResponseResponse> getGroup (
HttpClient client,
String groupId,
) async {
final Map<String, dynamic> params = Map<String, dynamic>();
final String _groupId = '$groupId';
final HttpClientConfig config = HttpClientConfig('GET', '/GroupV2/$_groupId/', params);
config.bodyContentType = null;
final HttpResponse response = await client.request(config);
if(response.statusCode == 200) {
return GroupResponseResponse.asyncFromJson(response.mappedBody);
}
throw Exception(response.mappedBody);
}