getMangaRecommendations method

Future<BuiltList<Recommendation>> getMangaRecommendations(
  1. int id
)

Implementation

Future<BuiltList<Recommendation>> getMangaRecommendations(int id) async {
  var url = '/manga/$id/recommendations';
  var response = await _getResponse(url);

  final recommendations = response['data'] ?? [];
  return BuiltList(recommendations.map((i) => Recommendation.fromJson(i)));
}