NotificationModel class

Constructors

NotificationModel({required String documentID, DateTime? timestamp, required String appId, String? description, bool? read, String? reporterId, String? assigneeId, NotificationStatus? status})

Properties

appId String
getter/setter pairoverride
assigneeId String?
getter/setter pair
description String?
getter/setter pair
documentID String
getter/setter pairoverride
hashCode int
The hash code for this object.
no setteroverride
read bool?
getter/setter pair
reporterId String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status NotificationStatus?
getter/setter pair
timestamp DateTime?
getter/setter pair

Methods

collectReferences({String? appId}) Future<List<ModelReference>>
override
copyWith({String? documentID, DateTime? timestamp, String? appId, String? description, bool? read, String? reporterId, String? assigneeId, NotificationStatus? status}) NotificationModel
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toEntity({String? appId}) NotificationEntity
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

fromEntity(String documentID, NotificationEntity? entity) Future<NotificationModel?>
fromEntityPlus(String documentID, NotificationEntity? entity, {String? appId}) Future<NotificationModel?>

Constants

id → const String
packageName → const String