ProductEvent class

Constructors

ProductEvent({String? distinctId, String? event, String? id, String? path, String? product, Object? properties, String? sessionId, String? timestamp, String? type, String? url})
Returns a new ProductEvent instance.

Properties

distinctId ↔ String?
DistinctID is the person/visitor the event is attributed to.
getter/setter pair
event ↔ String?
Event is the event name, e.g. page_viewed or signup_completed.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the row's stable event id — the client's own idempotency id when it sent one, else the server-minted one.
getter/setter pair
path ↔ String?
Path is the URL's path component, the key the topPages lens groups by.
getter/setter pair
product ↔ String?
Product is the surface that emitted the event. Omitted when absent.
getter/setter pair
properties ↔ Object?
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sessionId ↔ String?
SessionID groups the events of one visit. Omitted when the client sent none.
getter/setter pair
timestamp ↔ String?
Timestamp is when the event happened, RFC3339 UTC.
getter/setter pair
type ↔ String?
Type is the row's kind — the plane's discriminator: page, track, identify or group. (Errors are not here at all: they land on event.error and are read at /v1/event/errors.)
getter/setter pair
url ↔ String?
URL is the full page address the event fired on. Omitted when absent.
getter/setter pair

Methods

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

Operators

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

Static Methods

fromJson(dynamic value) → ProductEvent?
Returns a new ProductEvent instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<ProductEvent>
mapFromJson(dynamic json) → Map<String, ProductEvent>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<ProductEvent>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.