MessageEventData class final
The data of a MessageWebhookEvent.
Constructors
- MessageEventData({required String accountId, required MessageEventTrigger event, required String from, required String recipient, required String subject, required String messageIdHeader, required String id, String? userAgent, String? ip, bool? isBot, WebhookDeliveryAttempt? deliveryAttempt, JsonMap raw = const {}})
-
Creates message event data.
const
- MessageEventData.fromJson(JsonMap json)
-
Decodes message event data from JSON.
factory
Properties
- accountId → String
-
The ID of the account that sent the message.
final
- deliveryAttempt → WebhookDeliveryAttempt?
-
Diagnostics of the SMTP attempt this event reports on.
final
- event → MessageEventTrigger
-
The trigger of the event.
final
- from → String
-
The sender address. For campaign messages it includes the name, as
Name <address>.final - hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The API message ID, the same value as
CreateSingleMessageResponse.idand the IDmessages.gettakes.final - ip → String?
-
The IP address of the client, for opens.
final
- isBot → bool?
-
Whether the open was made by a bot, such as a security scanner.
final
- messageIdHeader → String
-
The Message-ID header, as returned in
CreateSingleMessageResponse.messageIdHeaderwhen the message was created.final - raw → JsonMap
-
The JSON object this value was decoded from.
final
- recipient → String
-
The recipient address.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subject → String
-
The subject line.
final
- userAgent → String?
-
The user agent of the client, for opens.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → JsonMap - Encodes this object as JSON.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited