KnotEvent class

Represents a Knot event received during user interaction within the Knot SDK.

Implemented types

Constructors

KnotEvent.new({required Environment environment, required String event, required String? merchant, required Map<String, Object?> metaData, required Product product, required String? taskId})
Initializes a KnotEvent object.
KnotEvent.fromJson(dynamic json)
Factory method to create a KnotEvent from a json map.
factory

Properties

environment Environment
The environment the event originated from.
final
event String
The primary event code.
final
hashCode int
The hash code for this object.
no setterinherited
merchant String?
The merchant associated with the event (if applicable).
final
metaData Map<String, Object?>
Addional metadata related to the event, stored as an Objective-C compatible dictionary.
final
product Product
The product the event originated from.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
taskId String?
The taskId identifier associated with this event.
final

Methods

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

Operators

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