Issue class Null safety

Model class for an issue on the tracker.

Annotations

Constructors

Issue({int id = 0, String url = '', String htmlUrl = '', int number = 0, String state = '', String title = '', User? user, List<IssueLabel>? labels, User? assignee, Milestone? milestone, int commentsCount = 0, IssuePullRequest? pullRequest, DateTime? createdAt, DateTime? closedAt, DateTime? updatedAt, String body = '', User? closedBy})
Issue.fromJson(Map<String, dynamic> input)
factory

Properties

assignee User?
The User that the issue is assigned to
read / write
body String
@JsonKey(defaultValue: ''), read / write
closedAt DateTime?
The time that the issue was closed at
@JsonKey(name: 'closed_at'), read / write
closedBy User?
The user who closed the issue
@JsonKey(name: 'closed_by'), read / write
commentsCount int
Number of Comments
@JsonKey(name: 'comments', defaultValue: 0), read / write
createdAt DateTime?
Time that the issue was created at
@JsonKey(name: 'created_at'), read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
htmlUrl String
Url to the Issue Page
@JsonKey(defaultValue: ''), read / write
id int
@JsonKey(defaultValue: 0), read / write
isClosed bool
read-only
isOpen bool
read-only
labels List<IssueLabel>
Issue Labels
@JsonKey(defaultValue: <IssueLabel>[]), read / write
milestone Milestone?
The Milestone
read / write
number int
Issue Number
@JsonKey(defaultValue: 0), read / write
pullRequest IssuePullRequest?
A Pull Request
@JsonKey(name: 'pull_request'), read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
state String
Issue State
@JsonKey(defaultValue: ''), read / write
title String
Issue Title
@JsonKey(defaultValue: ''), read / write
updatedAt DateTime?
The time that the issue was updated at
@JsonKey(name: 'updated_at'), read / write
url String
The api url.
@JsonKey(defaultValue: ''), read / write
user User?
User who created the issue.
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]
inherited

Operators

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