EventRequest class

Request payload for tracking events

Annotations
  • @JsonSerializable.new(explicitToJson: true)

Constructors

EventRequest({required String installId, required String eventName, required Map<String, dynamic> eventData, DateTime? timestamp, String sdkName = SdkInfo.name, String sdkVersion = SdkInfo.version, String? attributedLinkId, String? attributedClickId, String? linkOpenedAt, String? sessionId})
Creates an event request
EventRequest.fromJson(Map<String, dynamic> json)
JSON deserialization
factory

Properties

attributedClickId String?
The originating click id, when known.
final
attributedLinkId String?
The deep link currently credited for this event (last-click). Null for organic activity (no deep link has opened the app).
final
eventData Map<String, dynamic>
Custom event properties (must be JSON-serializable)
final
eventName String
Name of the event (e.g., "purchase", "signup")
final
hashCode int
The hash code for this object.
no setteroverride
installId String
The install ID from attribution
final
linkOpenedAt String?
ISO 8601 timestamp of when the attributing deep link opened the app.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sdkName String
SDK platform identifier (e.g., "flutter"), for backend SDK diagnostics
final
sdkVersion String
SDK release version (e.g., "0.2.0"), for backend SDK diagnostics
final
sessionId String?
The app-open session this event belongs to (for screen-flow grouping).
final
timestamp String
ISO 8601 timestamp of when the event occurred
final

Methods

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

Operators

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