deleteCustomList method
Endpoint used: DELETE /list/{id}
Deletes a list identified by it's listId
only
if the user identified by the sessionToken
is
eligible to do so and retuns a Result
instance
containing info on whether the request was successful.
Implementation
Future<Result> deleteCustomList(String sessionToken, String listId) async {
var response = await deleteCustomListResponse(sessionToken, listId);
try {
return Result.fromJson(jsonDecode(response.body));
} on Exception {
throw MangadexServerException(jsonDecode(response.body));
}
}