GithubIssueModel class abstract

Model for managing Github issues.

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

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

Constructors

GithubIssueModel({int? id, int? number, String? title, String? body, String? bodyHtml, String? bodyText, String? state, String? stateReason, String? activeLockReason, String? authorAssociation, String? nodeId, @Default.new(false) bool draft, @Default.new(false) bool locked, @Default.new(0) int commentsCount, @refParam GithubRepositoryModelRef? repository, @jsonParam GithubUserModel? user, @jsonParam GithubUserModel? assignee, @Default.new([]) @jsonParam List<GithubUserModel> assignees, @jsonParam GithubUserModel? closedBy, @jsonParam @Default.new(<GithubLabelValue>[]) List<GithubLabelValue> labels, ModelUri? url, ModelUri? htmlUrl, ModelUri? commentsUrl, ModelUri? eventsUrl, ModelUri? labelsUrl, ModelUri? repositoryUrl, ModelUri? timelineUrl, @jsonParam GithubReactionValue? reactions, ModelTimestamp? closedAt, @Default.new(ModelTimestamp.now()) ModelTimestamp createdAt, @Default.new(ModelTimestamp.now()) ModelTimestamp updatedAt, @Default.new(false) bool fromServer})
Model for managing Github issues.
const
factory
GithubIssueModel.fromJson(Map<String, Object?> json)
Convert from JSON.
factory

Properties

activeLockReason String?
no setterinherited
assignee GithubUserModel?
no setterinherited
assignees List<GithubUserModel>
no setterinherited
authorAssociation String?
no setterinherited
body String?
no setterinherited
bodyHtml String?
no setterinherited
bodyText String?
no setterinherited
closedAt → ModelTimestamp?
no setterinherited
closedBy GithubUserModel?
no setterinherited
commentsCount int
no setterinherited
commentsUrl → ModelUri?
no setterinherited
copyWith → $GithubIssueModelCopyWith<GithubIssueModel>
Create a copy of GithubIssueModel with the given fields replaced by the non-null parameter values.
no setterinherited
createdAt → ModelTimestamp
no setterinherited
draft bool
no setterinherited
eventsUrl → ModelUri?
no setterinherited
fromServer bool
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
htmlUrl → ModelUri?
no setterinherited
id int?
no setterinherited
labels List<GithubLabelValue>
no setterinherited
labelsUrl → ModelUri?
no setterinherited
locked bool
no setterinherited
nodeId String?
no setterinherited
number int?
no setterinherited
reactions GithubReactionValue?
no setterinherited
repository GithubRepositoryModelRef?
no setterinherited
repositoryUrl → ModelUri?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state String?
no setterinherited
stateReason String?
no setterinherited
timelineUrl → ModelUri?
no setterinherited
title String?
no setterinherited
updatedAt → ModelTimestamp
no setterinherited
url → ModelUri?
no setterinherited
user GithubUserModel?
no setterinherited

Methods

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

Available on GithubIssueModel, provided by the GithubIssueModelPatterns extension

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

Available on GithubIssueModel, provided by the GithubIssueModelPatterns extension

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

Available on GithubIssueModel, provided by the GithubIssueModelPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(int? id, int? number, String? title, String? body, String? bodyHtml, String? bodyText, String? state, String? stateReason, String? activeLockReason, String? authorAssociation, String? nodeId, bool draft, bool locked, int commentsCount, GithubRepositoryModelRef? repository, GithubUserModel? user, GithubUserModel? assignee, List<GithubUserModel> assignees, GithubUserModel? closedBy, List<GithubLabelValue> labels, ModelUri? url, ModelUri? htmlUrl, ModelUri? commentsUrl, ModelUri? eventsUrl, ModelUri? labelsUrl, ModelUri? repositoryUrl, ModelUri? timelineUrl, GithubReactionValue? reactions, ModelTimestamp? closedAt, ModelTimestamp createdAt, ModelTimestamp updatedAt, bool fromServer)?, {required TResult orElse()}) → TResult

Available on GithubIssueModel, provided by the GithubIssueModelPatterns 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 GithubIssueModel to a JSON map.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(int? id, int? number, String? title, String? body, String? bodyHtml, String? bodyText, String? state, String? stateReason, String? activeLockReason, String? authorAssociation, String? nodeId, bool draft, bool locked, int commentsCount, GithubRepositoryModelRef? repository, GithubUserModel? user, GithubUserModel? assignee, List<GithubUserModel> assignees, GithubUserModel? closedBy, List<GithubLabelValue> labels, ModelUri? url, ModelUri? htmlUrl, ModelUri? commentsUrl, ModelUri? eventsUrl, ModelUri? labelsUrl, ModelUri? repositoryUrl, ModelUri? timelineUrl, GithubReactionValue? reactions, ModelTimestamp? closedAt, ModelTimestamp createdAt, ModelTimestamp updatedAt, bool fromServer)) → TResult

Available on GithubIssueModel, provided by the GithubIssueModelPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(int? id, int? number, String? title, String? body, String? bodyHtml, String? bodyText, String? state, String? stateReason, String? activeLockReason, String? authorAssociation, String? nodeId, bool draft, bool locked, int commentsCount, GithubRepositoryModelRef? repository, GithubUserModel? user, GithubUserModel? assignee, List<GithubUserModel> assignees, GithubUserModel? closedBy, List<GithubLabelValue> labels, ModelUri? url, ModelUri? htmlUrl, ModelUri? commentsUrl, ModelUri? eventsUrl, ModelUri? labelsUrl, ModelUri? repositoryUrl, ModelUri? timelineUrl, GithubReactionValue? reactions, ModelTimestamp? closedAt, ModelTimestamp createdAt, ModelTimestamp updatedAt, bool fromServer)?) → TResult?

Available on GithubIssueModel, provided by the GithubIssueModelPatterns extension

A variant of when that fallback to returning null

Operators

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

Constants

collection → const _$GithubIssueModelCollectionQuery
Query for collection.
document → const _$GithubIssueModelDocumentQuery
Query for document.
form → const _$GithubIssueModelFormQuery
Query for form value.