GithubPullRequestTimelineModel class abstract

Model for managing Github pull request timelines.

GithubのPull Requestのタイムラインを管理するためのモデル。

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

Constructors

GithubPullRequestTimelineModel({int? id, String? body, String? previousBody, String? diffHunk, String? path, int? position, int? originalPosition, String? commitId, String? originalCommitId, String? sha, String? state, int? reviewId, @Default.new(GithubTimelineEvent.unknown) GithubTimelineEvent event, @jsonParam GithubUserModel? user, @jsonParam GithubUserModel? from, @jsonParam GithubUserModel? to, @jsonParam GithubProjectModel? project, @jsonParam GithubMilestoneValue? milestone, @jsonParam GithubReactionValue? reaction, @jsonParam GithubIssueModel? issue, @jsonParam GithubPullRequestModel? pullRequest, @jsonParam GithubLabelValue? label, ModelUri? url, ModelUri? pullRequestUrl, ModelUri? commitUrl, ModelUri? links, ModelUri? issueUrl, @Default.new(ModelTimestamp.now()) ModelTimestamp createdAt, @Default.new(ModelTimestamp.now()) ModelTimestamp updatedAt, @Default.new(false) bool fromServer})
Model for managing Github pull request timelines.
const
factory
GithubPullRequestTimelineModel.fromJson(Map<String, Object?> json)
Convert from JSON.
factory

Properties

body String?
no setterinherited
commitId String?
no setterinherited
commitUrl → ModelUri?
no setterinherited
copyWith → $GithubPullRequestTimelineModelCopyWith<GithubPullRequestTimelineModel>
Create a copy of GithubPullRequestTimelineModel with the given fields replaced by the non-null parameter values.
no setterinherited
createdAt → ModelTimestamp
no setterinherited
diffHunk String?
no setterinherited
event GithubTimelineEvent
no setterinherited
from GithubUserModel?
no setterinherited
fromServer bool
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id int?
no setterinherited
issue GithubIssueModel?
no setterinherited
issueUrl → ModelUri?
no setterinherited
label GithubLabelValue?
no setterinherited
no setterinherited
milestone GithubMilestoneValue?
no setterinherited
originalCommitId String?
no setterinherited
originalPosition int?
no setterinherited
path String?
no setterinherited
position int?
no setterinherited
previousBody String?
no setterinherited
project GithubProjectModel?
no setterinherited
pullRequest GithubPullRequestModel?
no setterinherited
pullRequestUrl → ModelUri?
no setterinherited
reaction GithubReactionValue?
no setterinherited
reviewId int?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sha String?
no setterinherited
state String?
no setterinherited
to GithubUserModel?
no setterinherited
updatedAt → ModelTimestamp
no setterinherited
url → ModelUri?
no setterinherited
user GithubUserModel?
no setterinherited

Methods

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

Available on GithubPullRequestTimelineModel, provided by the GithubPullRequestTimelineModelPatterns extension

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

Available on GithubPullRequestTimelineModel, provided by the GithubPullRequestTimelineModelPatterns extension

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

Available on GithubPullRequestTimelineModel, provided by the GithubPullRequestTimelineModelPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(int? id, String? body, String? previousBody, String? diffHunk, String? path, int? position, int? originalPosition, String? commitId, String? originalCommitId, String? sha, String? state, int? reviewId, GithubTimelineEvent event, GithubUserModel? user, GithubUserModel? from, GithubUserModel? to, GithubProjectModel? project, GithubMilestoneValue? milestone, GithubReactionValue? reaction, GithubIssueModel? issue, GithubPullRequestModel? pullRequest, GithubLabelValue? label, ModelUri? url, ModelUri? pullRequestUrl, ModelUri? commitUrl, ModelUri? links, ModelUri? issueUrl, ModelTimestamp createdAt, ModelTimestamp updatedAt, bool fromServer)?, {required TResult orElse()}) → TResult

Available on GithubPullRequestTimelineModel, provided by the GithubPullRequestTimelineModelPatterns 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 GithubPullRequestTimelineModel to a JSON map.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(int? id, String? body, String? previousBody, String? diffHunk, String? path, int? position, int? originalPosition, String? commitId, String? originalCommitId, String? sha, String? state, int? reviewId, GithubTimelineEvent event, GithubUserModel? user, GithubUserModel? from, GithubUserModel? to, GithubProjectModel? project, GithubMilestoneValue? milestone, GithubReactionValue? reaction, GithubIssueModel? issue, GithubPullRequestModel? pullRequest, GithubLabelValue? label, ModelUri? url, ModelUri? pullRequestUrl, ModelUri? commitUrl, ModelUri? links, ModelUri? issueUrl, ModelTimestamp createdAt, ModelTimestamp updatedAt, bool fromServer)) → TResult

Available on GithubPullRequestTimelineModel, provided by the GithubPullRequestTimelineModelPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(int? id, String? body, String? previousBody, String? diffHunk, String? path, int? position, int? originalPosition, String? commitId, String? originalCommitId, String? sha, String? state, int? reviewId, GithubTimelineEvent event, GithubUserModel? user, GithubUserModel? from, GithubUserModel? to, GithubProjectModel? project, GithubMilestoneValue? milestone, GithubReactionValue? reaction, GithubIssueModel? issue, GithubPullRequestModel? pullRequest, GithubLabelValue? label, ModelUri? url, ModelUri? pullRequestUrl, ModelUri? commitUrl, ModelUri? links, ModelUri? issueUrl, ModelTimestamp createdAt, ModelTimestamp updatedAt, bool fromServer)?) → TResult?

Available on GithubPullRequestTimelineModel, provided by the GithubPullRequestTimelineModelPatterns extension

A variant of when that fallback to returning null

Operators

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

Constants

collection → const _$GithubPullRequestTimelineModelCollectionQuery
Query for collection.
document → const _$GithubPullRequestTimelineModelDocumentQuery
Query for document.
form → const _$GithubPullRequestTimelineModelFormQuery
Query for form value.