following method

CursorPages<Artist> following(
  1. FollowingType type
)

Endpoint /v1/me/following only supports FollowingType.artist at the moment.

Needs user-follow-read scope

Implementation

CursorPages<Artist> following(FollowingType type) {
  assert(
      type == FollowingType.artist,
      'Only [FollowingType.artist] supported for now. Check the spotify documentation: '
      'https://developer.spotify.com/documentation/web-api/reference/get-followed');
  // since 'artists' is the container, there is no
  // containerParse necessary. Adding json to make the
  // CursorPages-Object happy.
  return _getCursorPages('$_path/following?type=${type._key}',
      (json) => Artist.fromJson(json), 'artists', (json) => json);
}