get method
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: Organization.fromJson,
statusCode: StatusCodes.OK, fail: (http.Response response) {
if (response.statusCode == StatusCodes.NOT_FOUND) {
throw OrganizationNotFound(github, name);
}
});