public static Issue toIssue(final PullRequest pullRequest) {
        if (pullRequest == null) {
            return null;
        }

        return Issue.builder()
                .assignee(pullRequest.assignee())
                .body(pullRequest.body())
                .bodyHtml(pullRequest.bodyHtml())
                .closedAt(pullRequest.closedAt())
                .comments(pullRequest.comments())
                .createdAt(pullRequest.createdAt())
                .htmlUrl(pullRequest.htmlUrl())
                .number(pullRequest.number())
                .milestone(pullRequest.milestone())
                .id(pullRequest.id())
                .pullRequest(pullRequest)
                .state(pullRequest.state())
                .title(pullRequest.title())
                .updatedAt(pullRequest.updatedAt())
                .url(pullRequest.url())
                .user(pullRequest.user())
                .build();
    }
Convert {@link PullRequest} model {@link Issue} model

@param pullRequest
@return issue
app/src/main/java/com/github/pockethub/android/core/issue/IssueUtils.java