PullRequest class Null safety

Model class for a Pull Request.

Annotations

Constructors

PullRequest({int? id, String? htmlUrl, String? diffUrl, String? patchUrl, int? number, String? state, String? title, String? body, DateTime? createdAt, DateTime? updatedAt, DateTime? closedAt, DateTime? mergedAt, PullRequestHead? head, PullRequestHead? base, User? user, bool? draft, String? mergeCommitSha, bool? merged, bool? mergeable, User? mergedBy, int? commentsCount, int? commitsCount, int? additionsCount, int? deletionsCount, int? changedFilesCount, List<IssueLabel>? labels})
PullRequest.fromJson(Map<String, dynamic> input)
factory

Properties

additionsCount int?
Number of additions
read / write
base PullRequestHead?
Pull Request Base
read / write
body String?
Pull Request Body
read / write
changedFilesCount int?
Number of changed files
read / write
closedAt DateTime?
Time the pull request was closed
read / write
commentsCount int?
Number of comments
read / write
commitsCount int?
Number of commits
read / write
createdAt DateTime?
Time the pull request was created
read / write
deletionsCount int?
Number of deletions
read / write
diffUrl String?
Url to the diff for this Pull Request
read / write
draft bool?
Whether or not the pull request is a draft
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
The Pull Request Head
read / write
htmlUrl String?
Url to the Pull Request Page
read / write
id int?
Pull Request ID
read / write
labels List<IssueLabel>?
Pull Request Labels
read / write
mergeable bool?
If the pull request is mergeable
read / write
mergeCommitSha String?
read / write
merged bool?
If the pull request was merged
read / write
mergedAt DateTime?
Time the pull request was merged
read / write
mergedBy User?
The user who merged the pull request
read / write
number int?
Pull Request Number
read / write
patchUrl String?
Url to the patch for this Pull Request
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
state String?
Pull Request State
read / write
title String?
Pull Request Title
read / write
updatedAt DateTime?
Time the pull request was updated
read / write
user User?
The User who created the Pull Request
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited