listTeams method

Stream<Team> listTeams(
  1. RepositorySlug slug
)

Lists the teams of the specified repository.

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

Implementation

Stream<Team> listTeams(RepositorySlug slug) {
  ArgumentError.checkNotNull(slug);
  return PaginationHelper(github).objects<Map<String, dynamic>, Team>(
    'GET',
    '/repos/${slug.fullName}/teams',
    (i) => Team.fromJson(i),
  );
}