get method Null safety

Future<PullRequest> get(
  1. RepositorySlug slug,
  2. int number
)

Fetches a single pull request.

API docs: https://developer.github.com/v3/pulls/#get-a-single-pull-request

Implementation

Future<PullRequest> get(RepositorySlug slug, int number) =>
    github.getJSON('/repos/${slug.fullName}/pulls/$number',
        convert: (dynamic i) => PullRequest.fromJson(i),
        statusCode: StatusCodes.OK);