Notification class

Annotations
  • @JsonSerializable()

Constructors

Notification.new({required String id, required String templateId, required String environmentId, required String organizationId, required String notificationId, required String subscriberId, required String messageTemplateId, required String jobId, required DateTime createdAt, DateTime? updatedAt, DateTime? lastSeenDate, DateTime? lastReadDate, Actor? actor, SubscriberFeedResponse? subscriber, required String transactionId, String? feedId, String? templateIdentifier, String? providerId, required String content, required ChannelType channel, required bool read, required bool seen, String? subject, required bool deleted, List<String>? deviceTokens, MessageCTA? cta, required NotificationStatus status, Map<String, dynamic>? payload, Map<String, dynamic>? overrides, bool? archived, List<String>? tags})
Notification.fromJson(Map<String, dynamic> json)
factory

Properties

actor Actor?
final
archived bool?
final
channel ChannelType
latefinal
content String
latefinal
createdAt DateTime
latefinal
cta MessageCTA?
final
deleted bool
latefinal
deviceTokens List<String>?
final
environmentId String
latefinal
feedId String?
final
hashCode int
The hash code for this object.
no setterinherited
id String
latefinal
jobId String
latefinal
lastReadDate DateTime?
latefinal
lastSeenDate DateTime?
latefinal
messageTemplateId String
latefinal
notificationId String
latefinal
organizationId String
latefinal
overrides Map<String, dynamic>?
final
payload Map<String, dynamic>?
final
providerId String?
final
read bool
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seen bool
latefinal
status NotificationStatus
latefinal
subject String?
final
subscriber SubscriberFeedResponse?
final
subscriberId String
latefinal
tags List<String>?
final
templateId String
latefinal
templateIdentifier String?
final
transactionId String
latefinal
updatedAt DateTime?
latefinal

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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