SessionContext class

Inheritance
Annotations
  • @JsonSerializable.new()

Constructors

SessionContext({required String userId, String? userName, String? userEmail, Map<String, dynamic>? userMetadata, String? sessionId, num? sessionCreationDate, bool hasRecording = false, bool isSessionSampledIn = true})
SessionContext.fromJson(Map<String, dynamic> json)
factory

Properties

accountId ↔ String?
getter/setter pairinherited
accountName ↔ String?
getter/setter pairinherited
hashCode → int
The hash code for this object.
no setterinherited
hasRecording ↔ bool
getter/setter pair
isSessionSampledIn ↔ bool
Whether the session this event belongs to was sampled in by CXExporterOptions.sdkSampler. false means the event reached export only because its category is listed in CXExporterOptions.excludeFromSampling while the session itself was sampled out.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sessionCreationDate ↔ num?
getter/setter pair
sessionId ↔ String?
getter/setter pair
userEmail ↔ String?
getter/setter pairinherited
userId ↔ String
getter/setter pairinherited
userMetadata ↔ Map<String, dynamic>?
getter/setter pairinherited
userName ↔ String?
getter/setter pairinherited

Methods

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

Operators

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