getHistoricalStatsDefinition static method

Gets historical stats definitions.

Implementation

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