Notification class
- Available extensions
- Annotations
-
- @freezed
Constructors
-
Notification({@Default(appBskyNotificationListNotificationsNotification) @JsonKey(name: r'$type') String $type, @AtUriConverter() required AtUri uri, required String cid, @ProfileViewConverter() required ProfileView author, @UNotificationReasonConverter() required UNotificationReason reason, @AtUriConverter() AtUri? reasonSubject, required Map<
String, dynamic> record, required bool isRead, required DateTime indexedAt, @LabelConverter() List<Label> ? labels, @JsonKey(name: r'$unknown') Map<String, dynamic> ? $unknown}) -
constfactory
-
Notification.fromJson(Map<
String, dynamic> json) -
factory
Properties
- $type → String
-
The unique namespace for this lex object.
no setterinherited
-
$unknown
→ Map<
String, dynamic> ? -
Contains unknown objects not defined in Lexicon.
no setterinherited
-
no setterinherited
- cid → String
-
no setterinherited
-
copyWith
→ $NotificationCopyWith<
Notification> -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- indexedAt → DateTime
-
no setterinherited
- isRead → bool
-
no setterinherited
-
labels
→ List<
Label> ? -
no setterinherited
- reason → UNotificationReason
-
Expected values are 'like', 'repost', 'follow', 'mention',
'reply', 'quote', and 'starterpack-joined'.
no setterinherited
- reasonSubject → AtUri?
-
no setterinherited
-
record
→ Map<
String, dynamic> -
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uri → AtUri
-
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited