getMangaForum method

Future<BuiltList<Forum>> getMangaForum(
  1. int mangaId, {
  2. ForumType? type,
})

Implementation

Future<BuiltList<Forum>> getMangaForum(int mangaId, {ForumType? type}) async {
  var url = '/manga/$mangaId/forum';
  if (type != null) url += '/${_enumToString(type)}';
  var response = await _getResponse(url);

  final topics = response['topics'] ?? [];
  return serializers.deserialize(topics, specifiedType: _fullType(Forum))!
      as BuiltList<Forum>;
}