getClanFireteam static method

Future<FireteamResponseResponse> getClanFireteam(
  1. HttpClient client,
  2. String fireteamId,
  3. String groupId
)

Gets a specific fireteam.

Implementation

static Future<FireteamResponseResponse> getClanFireteam (
    HttpClient client,
    String fireteamId,
    String groupId,
) async {
    final Map<String, dynamic> params = Map<String, dynamic>();
    final String _fireteamId = '$fireteamId';
    final String _groupId = '$groupId';
    final HttpClientConfig config = HttpClientConfig('GET', '/Fireteam/Clan/$_groupId/Summary/$_fireteamId/', params);
    config.bodyContentType = null;
    final HttpResponse response = await client.request(config);
    if(response.statusCode == 200) {
        return FireteamResponseResponse.asyncFromJson(response.mappedBody);
    }
    throw Exception(response.mappedBody);
}