Notification class
- Annotations
-
- @freezed
Constructors
-
Notification({required String cid, @AtUriConverter() required AtUri uri, required Actor author, required NotificationReason reason, @AtUriConverter() AtUri? reasonSubject, @Default(false) bool isRead, Map<
String, dynamic> ? record, List<Label> ? labels, required DateTime indexedAt}) -
constfactory
-
Notification.fromJson(Map<
String, Object?> json) -
factory
Properties
-
no setterinherited
- cid → String
-
no setterinherited
-
copyWith
→ $NotificationCopyWith<
Notification> -
Create a copy of Notification
with the given fields replaced by the non-null parameter values.
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 → NotificationReason
-
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> -
Serializes this Notification to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited