listLanguages method
Gets a language breakdown for the specified repository.
API docs: https://developer.github.com/v3/repos/#list-languages
Implementation
Future<LanguageBreakdown> listLanguages(RepositorySlug slug) async {
ArgumentError.checkNotNull(slug);
return github.getJSON<Map<String, dynamic>, LanguageBreakdown>(
'/repos/${slug.fullName}/languages',
statusCode: StatusCodes.OK,
convert: (input) => LanguageBreakdown(input.cast<String, int>()),
);
}