Webhook class

Represents a webhook event payload received from the FingerprintJS Pro API.

Constructors

Webhook({required String id, required String event, required String timestamp, required String visitorId, Map<String, dynamic>? payload})
Constructor to initialize the Webhook.
Webhook.fromJson(Map<String, dynamic> json)
Factory to create a Webhook from JSON.
factory

Properties

event String
Event type identifier (e.g., "visitor.created", "visitor.updated").
final
hashCode int
The hash code for this object.
no setterinherited
id String
Unique identifier for the webhook event.
final
payload Map<String, dynamic>?
Additional event-specific data (optional).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp String
The ISO8601 timestamp when the event occurred.
final
visitorId String
The visitor identifier associated with the event.
final

Methods

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

Operators

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