getMangaAggregate function Null safety
- String mangaId,
- {List<
String> ? groupIds, - List<
LanguageCodes> ? translatedLanguages}
Gets response of manga chapter and volume info of a manga identified by it's mangaId
,
which can be filtered by groupIds
and translatedLanguages
Implementation
Future<Aggregate> getMangaAggregate(String mangaId,
{List<String>? groupIds, List<LanguageCodes>? translatedLanguages}) async {
var response = await getMangaAggregateResponse(
mangaId,
groupIds: groupIds,
translatedLanguages: translatedLanguages,
);
try {
return Aggregate.fromJson(jsonDecode(response.body));
} on Exception {
throw MangadexServerException(jsonDecode(response.body));
}
}