get method

Future<Map<String, dynamic>> get()

Implementation

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