GithubIssueTimelineModel class abstract

Model for managing Github issue timelines.

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

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

Constructors

GithubIssueTimelineModel({int? id, String? body, String? previousBody, String? authorAssociation, String? commitId, 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? commitUrl, ModelUri? htmlUrl, ModelUri? issueUrl, ModelUri? links, ModelUri? pullRequestUrl, @Default.new(ModelTimestamp.now()) ModelTimestamp createdAt, @Default.new(ModelTimestamp.now()) ModelTimestamp updatedAt, @Default.new(false) bool fromServer})
Model for managing Github issue timelines.
const
factory
GithubIssueTimelineModel.fromJson(Map<String, Object?> json)
Convert from JSON.
factory

Properties

authorAssociation → String?
no setterinherited
body → String?
no setterinherited
commitId → String?
no setterinherited
commitUrl → ModelUri?
no setterinherited
copyWith → $GithubIssueTimelineModelCopyWith<GithubIssueTimelineModel>
Create a copy of GithubIssueTimelineModel with the given fields replaced by the non-null parameter values.
no setterinherited
createdAt → ModelTimestamp
no setterinherited
event → GithubTimelineEvent
no setterinherited
from → GithubUserModel?
no setterinherited
fromServer → bool
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
htmlUrl → ModelUri?
no setterinherited
id → int?
no setterinherited
issue → GithubIssueModel?
no setterinherited
issueUrl → ModelUri?
no setterinherited
label → GithubLabelValue?
no setterinherited
no setterinherited
milestone → GithubMilestoneValue?
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(_GithubIssueTimelineModel value)) → TResult

Available on GithubIssueTimelineModel, provided by the GithubIssueTimelineModelPatterns extension

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

Available on GithubIssueTimelineModel, provided by the GithubIssueTimelineModelPatterns extension

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

Available on GithubIssueTimelineModel, provided by the GithubIssueTimelineModelPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(int? id, String? body, String? previousBody, String? authorAssociation, String? commitId, 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? commitUrl, ModelUri? htmlUrl, ModelUri? issueUrl, ModelUri? links, ModelUri? pullRequestUrl, ModelTimestamp createdAt, ModelTimestamp updatedAt, bool fromServer)?, {required TResult orElse()}) → TResult

Available on GithubIssueTimelineModel, provided by the GithubIssueTimelineModelPatterns 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 GithubIssueTimelineModel 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? authorAssociation, String? commitId, 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? commitUrl, ModelUri? htmlUrl, ModelUri? issueUrl, ModelUri? links, ModelUri? pullRequestUrl, ModelTimestamp createdAt, ModelTimestamp updatedAt, bool fromServer)) → TResult

Available on GithubIssueTimelineModel, provided by the GithubIssueTimelineModelPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(int? id, String? body, String? previousBody, String? authorAssociation, String? commitId, 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? commitUrl, ModelUri? htmlUrl, ModelUri? issueUrl, ModelUri? links, ModelUri? pullRequestUrl, ModelTimestamp createdAt, ModelTimestamp updatedAt, bool fromServer)?) → TResult?

Available on GithubIssueTimelineModel, provided by the GithubIssueTimelineModelPatterns extension

A variant of when that fallback to returning null

Operators

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

Constants

collection → const _$GithubIssueTimelineModelCollectionQuery
Query for collection.
document → const _$GithubIssueTimelineModelDocumentQuery
Query for document.
form → const _$GithubIssueTimelineModelFormQuery
Query for form value.