getPublicMilestones static method
Future<DictionaryOfuint32AndDestinyPublicMilestoneResponse>
getPublicMilestones(
- HttpClient client
Gets public information about currently available Milestones.
Implementation
static Future<DictionaryOfuint32AndDestinyPublicMilestoneResponse> getPublicMilestones (
HttpClient client,
) async {
final Map<String, dynamic> params = Map<String, dynamic>();
final HttpClientConfig config = HttpClientConfig('GET', '/Destiny2/Milestones/', params);
config.bodyContentType = null;
final HttpResponse response = await client.request(config);
if(response.statusCode == 200) {
return DictionaryOfuint32AndDestinyPublicMilestoneResponse.asyncFromJson(response.mappedBody);
}
throw Exception(response.mappedBody);
}