getTeam method

Future<Team> getTeam(
  1. int teamId
)

Gets the team specified by the teamId.

API docs: https://developer.github.com/v3/orgs/teams/#get-team

Implementation

Future<Team> getTeam(int teamId) {
  return github.getJSON(
        '/teams/$teamId',
        convert: Organization.fromJson,
        statusCode: StatusCodes.OK,
      )
      as Future<Team>;
}