getUserFollowedGroups method

Future<UserFollowedGroups> getUserFollowedGroups(
  1. String sessionToken,
  2. int? offset,
  3. int? limit
)
inherited

Endpoint used: GET /user/follows/group

Returns a UserFollowedGroups class instance with details of the all the Groups that the user follows, the sessionToken is the session token obtained using the login() function

Implementation

Future<UserFollowedGroups> getUserFollowedGroups(
    String sessionToken, int? offset, int? limit) async {
  var response = await getUserFollowedGroupsResponse(
    sessionToken,
    offset: offset,
    limit: limit,
  );
  try {
    return UserFollowedGroups.fromJson(jsonDecode(response.body));
  } on Exception {
    throw MangadexServerException(jsonDecode(response.body));
  }
}