getUserCustomLists method
Endpoint used: get /user/{id}/list
Get's limit
number of PUBLIC custom lists of a user identified by
it's userId
counting from list offset
and returns a
SingleCustomListResponse
class instance containing the details of the lists.
Implementation
Future<SingleCustomListResponse> getUserCustomLists(
String userId, int? limit, int? offset) async {
var response = await getUserCustomListsResponse(userId, limit, offset);
try {
return SingleCustomListResponse.fromJson(jsonDecode(response.body));
} on Exception {
throw MangadexServerException(jsonDecode(response.body));
}
}