TrajectoryRecord class abstract
Wire format for the trajectory JSONL stream (PRD §14).
Each record serializes to a single JSON object with a type
discriminator. Field names are snake_case on the wire.
Common umbrella for any trajectory record decoded from JSONL.
All concrete classes (SessionHeader, TurnRecord, ExtensionDisabledEvent, SessionFooter, UnknownTrajectoryRecord) implement this so callers can switch on a single type when hydrating a trajectory stream.
Constructors
-
TrajectoryRecord.fromJson(Map<
String, dynamic> json) -
Dispatches on the
typediscriminator. Unknown values yield UnknownTrajectoryRecord rather than throwing — the timeline must still render the rest of the trajectory if a reader encounters a record type from a future schema version.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited