Notification class Null safety

Model class for notifications.

Annotations

Constructors

Notification({String? id, Repository? repository, NotificationSubject? subject, String? reason, bool? unread, DateTime? updatedAt, DateTime? lastReadAt, String? url, String? subscriptionUrl})
Notification.fromJson(Map<String, dynamic> input)
factory

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
id String?
final
lastReadAt DateTime?
@JsonKey(name: 'last_read_at'), final
reason String?
final
repository Repository?
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
subject NotificationSubject?
final
subscriptionUrl String?
@JsonKey(name: 'subscription_url'), final
unread bool?
final
updatedAt DateTime?
@JsonKey(name: 'updated_at'), final
url String?
final

Methods

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

Operators

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