TimelineEvent class

Model class for an issue or PR timeline event.

This is a base class for the various event types. Events that only use the default fields use this class; events that have additional fields use one of the subclasses.

The TimelineEvent.fromJson factory selects the right subclass based on the event field.

If the event type is not known, TimelineEvent is used.

See also: https://docs.github.com/en/webhooks-and-events/events/issue-event-types

Implementers
Annotations
  • @JsonSerializable()

Constructors

TimelineEvent({int id = 0, String? nodeId, String? url, User? actor, String event = '', String? commitId, String? commitUrl, DateTime? createdAt, GitHubApp? performedViaGithubApp})
TimelineEvent.fromJson(Map<String, dynamic> input)
factory

Properties

actor User?
getter/setter pair
commitId String?
getter/setter pair
commitUrl String?
getter/setter pair
createdAt DateTime?
getter/setter pair
event String
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id int
getter/setter pair
nodeId String?
getter/setter pair
performedViaGithubApp GitHubApp?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String?
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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