getClanBannerSource static method

Future<ClanBannerSourceResponse> getClanBannerSource(
  1. HttpClient client
)

Returns the dictionary of values for the Clan Banner

Implementation

static Future<ClanBannerSourceResponse> getClanBannerSource (
    HttpClient client,
) async {
    final Map<String, dynamic> params = Map<String, dynamic>();
    final HttpClientConfig config = HttpClientConfig('GET', '/Destiny2/Clan/ClanBannerDictionary/', params);
    config.bodyContentType = null;
    final HttpResponse response = await client.request(config);
    if(response.statusCode == 200) {
        return ClanBannerSourceResponse.asyncFromJson(response.mappedBody);
    }
    throw Exception(response.mappedBody);
}