InternalContext class abstract

Implementers

Constructors

InternalContext(String event, [dynamic rawValue])
rawValue is optional so a subclass written against the single-argument constructor still compiles; such a context serializes from its typed model.
const

Properties

event String
final
hashCode int
The hash code for this object.
no setterinherited
rawValue → dynamic
A deep copy of the payload — mutating what comes back cannot change what is sent. Null when this context was built in Dart rather than parsed.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
The typed view, for reading. Programmatically-built contexts have no raw payload, so this is also what ships for them.
toString() String
A string representation of this object.
inherited
toWireValue() → dynamic
What CxRumEvent.toJson emits: the original payload when there is one.

Operators

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

Static Methods

fromJson(dynamic json) InternalContext
Never throws. An internal context this version does not model — a newer native SDK's event, or one whose shape changed — round-trips unchanged through OpaqueInternalContext instead. Throwing here would cost the whole event: the beforeSend handler drops any event it cannot parse, so an unrecognised internal context would silently delete telemetry that apps without a beforeSend deliver normally. Accepts anything the SDK may send — including a non-map value, which the caller's cast used to throw on, dropping the event before this ran.