getBungieRewardsList static method

Returns a list of the current bungie rewards

Implementation

static Future<DictionaryOfstringAndBungieRewardDisplayResponse> getBungieRewardsList (
    HttpClient client,
) async {
    final Map<String, dynamic> params = Map<String, dynamic>();
    final HttpClientConfig config = HttpClientConfig('GET', '/Tokens/Rewards/BungieRewards/', params);
    config.bodyContentType = null;
    final HttpResponse response = await client.request(config);
    if(response.statusCode == 200) {
        return DictionaryOfstringAndBungieRewardDisplayResponse.asyncFromJson(response.mappedBody);
    }
    throw Exception(response.mappedBody);
}