get method

Future<Organization> get(
  1. String? name
)

Fetches the organization specified by name.

API docs: https://developer.github.com/v3/orgs/#get-an-organization

Implementation

Future<Organization> get(String? name) => github.getJSON('/orgs/$name',
    convert: (dynamic i) => Organization.fromJson(i),
    statusCode: StatusCodes.OK,
    fail: (http.Response response) {
      if (response.statusCode == 404) {
        throw OrganizationNotFound(github, name);
      }
    });