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.
constfactory
-
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
- links → ModelUri?
-
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
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_GithubPullRequestTimelineModel value)?) → TResult? -
Available on GithubPullRequestTimelineModel, provided by the GithubPullRequestTimelineModelPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_GithubPullRequestTimelineModel value)?, {required TResult orElse()}) → TResult -
Available on GithubPullRequestTimelineModel, provided by the GithubPullRequestTimelineModelPatterns extension
A variant ofmap
that fallback to returningorElse
. -
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 ofwhen
that fallback to anorElse
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
Aswitch
-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 ofwhen
that fallback to returningnull
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.