getAnimeForum method

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

Implementation

Future<BuiltList<Forum>> getAnimeForum(int animeId, {ForumType? type}) async {
  var url = '/anime/$animeId/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>;
}