UserNotification constructor

UserNotification({
  1. required String id,
  2. required String tenantId,
  3. String? userId,
  4. String? anonUserId,
  5. required String urlId,
  6. required String url,
  7. String? pageTitle,
  8. required NotificationObjectType relatedObjectType,
  9. required String relatedObjectId,
  10. required bool viewed,
  11. required bool isUnreadMessage,
  12. required bool sent,
  13. required DateTime createdAt,
  14. required NotificationType type,
  15. String? fromCommentId,
  16. String? fromVoteId,
  17. String? fromUserName,
  18. String? fromUserId,
  19. String? fromUserAvatarSrc,
  20. required bool optedOut,
  21. int? count,
  22. List<String> relatedIds = const [],
  23. List<String> fromUserIds = const [],
  24. List<String> fromUserNames = const [],
})

Returns a new UserNotification instance.

Implementation

UserNotification({
  required this.id,
  required this.tenantId,
  this.userId,
  this.anonUserId,
  required this.urlId,
  required this.url,
  this.pageTitle,
  required this.relatedObjectType,
  required this.relatedObjectId,
  required this.viewed,
  required this.isUnreadMessage,
  required this.sent,
  required this.createdAt,
  required this.type,
  this.fromCommentId,
  this.fromVoteId,
  this.fromUserName,
  this.fromUserId,
  this.fromUserAvatarSrc,
  required this.optedOut,
  this.count,
  this.relatedIds = const [],
  this.fromUserIds = const [],
  this.fromUserNames = const [],
});