listUserTeams method

Stream<Team> listUserTeams()

Lists all of the teams across all of the organizations to which the authenticated user belongs.

API docs: https://developer.github.com/v3/orgs/teams/#list-user-teams

Implementation

Stream<Team> listUserTeams() {
  return PaginationHelper(github).objects(
    'GET',
    '/user/teams',
    Team.fromJson,
  );
}