staff method

Future<List<Map>> staff()

Implementation

Future<List<Map>> staff() async {
  // https://api.jikan.moe/v4/anime/32/staff
  try {
    final res = await _dio.get("$animeId/staff");
    return res.data["data"];
  } on DioException catch (e) {
    if (e.response!.statusCode == 404) {
      throw NotFoundException();
    } else {
      throw BadResponseException();
    }
  }
}