removeMangaFromCustomList method
Endpoint used: DELETE /manga/{id}/list/{id}
Removes a manga identified by it's mangaId
/ UUID to a custom list identified by
it's listId
if the user identified by the sessionToken
has the permission to do so and returns a Result
class instance
containing info on whether the request was successful.
Implementation
Future<Result> removeMangaFromCustomList(
String sessionToken, String mangaId, String listId) async {
var response =
await removeMangaFromCustomListResponse(sessionToken, mangaId, listId);
try {
return Result.fromJson(jsonDecode(response.body));
} on Exception {
throw MangadexServerException(jsonDecode(response.body));
}
}