Message class
- Annotations
-
- @JsonSerializable()
Constructors
-
Message.new({required String id, required String templateId, required String environmentId, required String organizationId, required String notificationId, required String subscriberId, NotificationTemplate? template, String? templateIdentifier, required dynamic content, required ChannelType channel, required bool seen, required bool read, DateTime? lastSeenDate, DateTime? lastReadDate, DateTime? createdAt, MessageCTA? cta, String? feedId, String? layoutId, required Map<
String, dynamic> ? payload, required Map<String, dynamic> ? data, Actor? actor, String? avatar, String? subject, required String transactionId, String? providerId, List<String> ? deviceTokens, required NotificationStatus status, DateTime? updatedAt, List<String> ? tags, bool archived = false, bool delete = false, String? messageTemplateId, String? jobId}) -
Message.fromJson(Map<
String, dynamic> json) -
factory
Properties
- actor → Actor?
-
final
- archived ↔ bool
-
latefinal
- avatar → String?
-
final
- channel ↔ ChannelType
-
latefinal
- content → dynamic
-
The content of the message template it can be a string or a list of blocks
IEmailBlock
final - createdAt ↔ DateTime?
-
latefinal
- cta → MessageCTA?
-
final
-
data
→ Map<
String, dynamic> ? -
final
- delete ↔ 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?
-
final
- lastReadDate ↔ DateTime?
-
latefinal
- lastSeenDate ↔ DateTime?
-
latefinal
- layoutId → String?
-
final
- messageTemplateId → String?
-
final
- notificationId ↔ String
-
latefinal
- organizationId ↔ String
-
latefinal
-
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
- subscriberId ↔ String
-
latefinal
-
final
- template → NotificationTemplate?
-
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