getGroupByName static method
Future<GroupResponseResponse>
getGroupByName(
- HttpClient client,
- String groupName,
- GroupType groupType
Get information about a specific group with the given name and type.
Implementation
static Future<GroupResponseResponse> getGroupByName (
HttpClient client,
String groupName,
GroupType groupType,
) async {
final Map<String, dynamic> params = Map<String, dynamic>();
final String _groupName = '$groupName';
final String _groupType = '${groupType.value}';
final HttpClientConfig config = HttpClientConfig('GET', '/GroupV2/Name/$_groupName/$_groupType/', params);
config.bodyContentType = null;
final HttpResponse response = await client.request(config);
if(response.statusCode == 200) {
return GroupResponseResponse.asyncFromJson(response.mappedBody);
}
throw Exception(response.mappedBody);
}