listHooks method

Stream<Hook> listHooks(
  1. String org
)

Lists the hooks for the specified organization.

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

Implementation

Stream<Hook> listHooks(String org) {
  return PaginationHelper(github).objects('GET', '/orgs/$org/hooks',
      (dynamic i) => Hook.fromJson(i)..repoName = org);
}