DVAnalyticsRecord class final

An event as it is stored and sent: after consent, after redaction.

Exactly one of userId and anonymousId is set. Stitching the two is identity resolution, which the application declares for itself or does not do.

Constructors

DVAnalyticsRecord({required String id, required String name, required String category, required String? userId, required String? anonymousId, required String sessionId, required DateTime occurredAt, required String policyVersion, required Map<String, Object?> properties, String? tenant})
const

Properties

anonymousId → String?
final
category → String
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
name → String
final
occurredAt → DateTime
final
policyVersion → String
The consent policy version in force when the event was allowed.
final
properties → Map<String, Object?>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sessionId → String
final
subject → String
Whose event this is, whichever id it carries.
no setter
tenant → String?
final
userId → String?
final

Methods

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

Operators

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

Static Methods

fromJson(Map<String, Object?> json) → DVAnalyticsRecord