getGroupByNameV2 static method

Get information about a specific group with the given name and type. The POST version.

Implementation

static Future<GroupResponseResponse> getGroupByNameV2 (
    HttpClient client,
    GroupNameSearchRequest body
) async {
    final Map<String, dynamic> params = Map<String, dynamic>();
    final HttpClientConfig config = HttpClientConfig('POST', '/GroupV2/NameV2/', params);
    config.body = await body.asyncToJson();
    config.bodyContentType = 'application/json';
    final HttpResponse response = await client.request(config);
    if(response.statusCode == 200) {
        return GroupResponseResponse.asyncFromJson(response.mappedBody);
    }
    throw Exception(response.mappedBody);
}