GithubPullRequestModel class abstract

Model for managing Github pull requests.

GithubのPull Requestを管理するためのモデル。

Available extensions
Annotations
  • @freezed
  • @formValue
  • @immutable
  • @CollectionModelPath.new("organization/:organization_id/repository/:repository_id/pull_request", adapter: "GithubModelMasamuneAdapter.primary.modelAdapter")

Constructors

GithubPullRequestModel({int? id, String? nodeId, int? number, String? state, String? title, String? body, String? mergeCommitSha, String? mergeableState, String? authorAssociation, @Default.new(false) bool draft, @Default.new(false) bool merged, @Default.new(false) bool mergeable, @Default.new(false) bool rebaseable, @Default.new(false) bool maintainerCanModify, @Default.new(0) int commentsCount, @Default.new(0) int commitsCount, @Default.new(0) int additionsCount, @Default.new(0) int deletionsCount, @Default.new(0) int changedFilesCount, @Default.new(0) int reviewCommentCount, @refParam GithubRepositoryModelRef? repository, @refParam GithubUserModelRef? user, @refParam GithubUserModelRef? mergedBy, @Default.new([]) @refParam List<GithubUserModelRef?> requestedReviewers, @jsonParam @Default.new(<GithubLabelValue>[]) List<GithubLabelValue> labels, @jsonParam GithubPullRequestHeadValue? head, @jsonParam GithubPullRequestHeadValue? base, @jsonParam GithubMilestoneValue? milestone, ModelUri? htmlUrl, ModelUri? diffUrl, ModelUri? patchUrl, ModelTimestamp? closedAt, ModelTimestamp? mergedAt, @Default.new(ModelTimestamp.now()) ModelTimestamp createdAt, @Default.new(ModelTimestamp.now()) ModelTimestamp updatedAt, @Default.new(false) bool fromServer})
Model for managing Github pull requests.
const
factory
GithubPullRequestModel.fromJson(Map<String, Object?> json)
Convert from JSON.
factory

Properties

additionsCount int
no setterinherited
authorAssociation String?
no setterinherited
base GithubPullRequestHeadValue?
no setterinherited
body String?
no setterinherited
changedFilesCount int
no setterinherited
closedAt → ModelTimestamp?
no setterinherited
commentsCount int
no setterinherited
commitsCount int
no setterinherited
copyWith → $GithubPullRequestModelCopyWith<GithubPullRequestModel>
Create a copy of GithubPullRequestModel with the given fields replaced by the non-null parameter values.
no setterinherited
createdAt → ModelTimestamp
no setterinherited
deletionsCount int
no setterinherited
diffUrl → ModelUri?
no setterinherited
draft bool
no setterinherited
fromServer bool
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
no setterinherited
htmlUrl → ModelUri?
no setterinherited
id int?
no setterinherited
labels List<GithubLabelValue>
no setterinherited
maintainerCanModify bool
no setterinherited
mergeable bool
no setterinherited
mergeableState String?
no setterinherited
mergeCommitSha String?
no setterinherited
merged bool
no setterinherited
mergedAt → ModelTimestamp?
no setterinherited
mergedBy GithubUserModelRef?
no setterinherited
milestone GithubMilestoneValue?
no setterinherited
nodeId String?
no setterinherited
number int?
no setterinherited
patchUrl → ModelUri?
no setterinherited
rebaseable bool
no setterinherited
repository GithubRepositoryModelRef?
no setterinherited
requestedReviewers List<GithubUserModelRef?>
no setterinherited
reviewCommentCount int
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state String?
no setterinherited
title String?
no setterinherited
updatedAt → ModelTimestamp
no setterinherited
user GithubUserModelRef?
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_GithubPullRequestModel value)) → TResult

Available on GithubPullRequestModel, provided by the GithubPullRequestModelPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_GithubPullRequestModel value)?) → TResult?

Available on GithubPullRequestModel, provided by the GithubPullRequestModelPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_GithubPullRequestModel value)?, {required TResult orElse()}) → TResult

Available on GithubPullRequestModel, provided by the GithubPullRequestModelPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(int? id, String? nodeId, int? number, String? state, String? title, String? body, String? mergeCommitSha, String? mergeableState, String? authorAssociation, bool draft, bool merged, bool mergeable, bool rebaseable, bool maintainerCanModify, int commentsCount, int commitsCount, int additionsCount, int deletionsCount, int changedFilesCount, int reviewCommentCount, GithubRepositoryModelRef? repository, GithubUserModelRef? user, GithubUserModelRef? mergedBy, List<GithubUserModelRef?> requestedReviewers, List<GithubLabelValue> labels, GithubPullRequestHeadValue? head, GithubPullRequestHeadValue? base, GithubMilestoneValue? milestone, ModelUri? htmlUrl, ModelUri? diffUrl, ModelUri? patchUrl, ModelTimestamp? closedAt, ModelTimestamp? mergedAt, ModelTimestamp createdAt, ModelTimestamp updatedAt, bool fromServer)?, {required TResult orElse()}) → TResult

Available on GithubPullRequestModel, provided by the GithubPullRequestModelPatterns extension

A variant of when that fallback to an orElse callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this GithubPullRequestModel to a JSON map.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(int? id, String? nodeId, int? number, String? state, String? title, String? body, String? mergeCommitSha, String? mergeableState, String? authorAssociation, bool draft, bool merged, bool mergeable, bool rebaseable, bool maintainerCanModify, int commentsCount, int commitsCount, int additionsCount, int deletionsCount, int changedFilesCount, int reviewCommentCount, GithubRepositoryModelRef? repository, GithubUserModelRef? user, GithubUserModelRef? mergedBy, List<GithubUserModelRef?> requestedReviewers, List<GithubLabelValue> labels, GithubPullRequestHeadValue? head, GithubPullRequestHeadValue? base, GithubMilestoneValue? milestone, ModelUri? htmlUrl, ModelUri? diffUrl, ModelUri? patchUrl, ModelTimestamp? closedAt, ModelTimestamp? mergedAt, ModelTimestamp createdAt, ModelTimestamp updatedAt, bool fromServer)) → TResult

Available on GithubPullRequestModel, provided by the GithubPullRequestModelPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(int? id, String? nodeId, int? number, String? state, String? title, String? body, String? mergeCommitSha, String? mergeableState, String? authorAssociation, bool draft, bool merged, bool mergeable, bool rebaseable, bool maintainerCanModify, int commentsCount, int commitsCount, int additionsCount, int deletionsCount, int changedFilesCount, int reviewCommentCount, GithubRepositoryModelRef? repository, GithubUserModelRef? user, GithubUserModelRef? mergedBy, List<GithubUserModelRef?> requestedReviewers, List<GithubLabelValue> labels, GithubPullRequestHeadValue? head, GithubPullRequestHeadValue? base, GithubMilestoneValue? milestone, ModelUri? htmlUrl, ModelUri? diffUrl, ModelUri? patchUrl, ModelTimestamp? closedAt, ModelTimestamp? mergedAt, ModelTimestamp createdAt, ModelTimestamp updatedAt, bool fromServer)?) → TResult?

Available on GithubPullRequestModel, provided by the GithubPullRequestModelPatterns extension

A variant of when that fallback to returning null

Operators

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

Constants

collection → const _$GithubPullRequestModelCollectionQuery
Query for collection.
document → const _$GithubPullRequestModelDocumentQuery
Query for document.
form → const _$GithubPullRequestModelFormQuery
Query for form value.