unfollowCustomList method

Future<Result> unfollowCustomList(
  1. String sessionToken,
  2. String listId
)
inherited

Endpoint used: DELETE /loist/{id}/follow

Makes the user identified by the sessionToken unfollow a custom list identified by it's listId and returns a Result class instance containing info on whether the request was successful.

Implementation

Future<Result> unfollowCustomList(String sessionToken, String listId) async {
  var response = await unfollowCustomListResponse(sessionToken, listId);
  try {
    return Result.fromJson(jsonDecode(response.body));
  } on Exception {
    throw MangadexServerException(jsonDecode(response.body));
  }
}