MessageClickedEventData class final
The data of a MessageClickedEvent.
Constructors
- MessageClickedEventData({required String accountId, required MessageEventTrigger event, required String from, required String recipient, required String subject, required String messageIdHeader, required String url, required String userAgent, required String ip, required String id, bool? isBot, JsonMap raw = const {}})
-
Creates click event data.
const
- MessageClickedEventData.fromJson(JsonMap json)
-
Decodes click event data from JSON.
factory
Properties
- accountId → String
-
The ID of the account that sent the message.
final
- event → MessageEventTrigger
-
The trigger of the event, normally MessageEventTrigger.onClicked.
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, as in MessageEventData.id: since 9 November
2026 a hyphenated UUID of 36 characters, before the internal AhaSend
ID of 32 hex characters. Group events by messageIdHeader, not by
this ID.
messages.getcannot fetch campaign messages by it.final - ip → String
-
The IP address of the client that clicked.
final
- isBot → bool?
-
Whether the click was made by a bot.
nullcarries no signal.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
- url → String
-
The URL that was clicked.
final
- userAgent → String
-
The user agent of the client that clicked.
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