getLoggedInUserCustomLists method
Endpoint used: GET /user/list
Gets the limit
number of custom lists from offset
in the list of Custom Lists of the user identified
by the sessionToken
and returns a SingleCustomListResponse
class instance containing all the lists and their data.
Implementation
Future<SingleCustomListResponse> getLoggedInUserCustomLists(
String sessionToken, int? limit, int? offset) async {
var response =
await getLoggedInUserCustomListsResponse(sessionToken, limit, offset);
try {
return SingleCustomListResponse.fromJson(jsonDecode(response.body));
} on Exception {
throw MangadexServerException(jsonDecode(response.body));
}
}