BranchSummaryRecord class final
Marks a branch the conversation navigated away from, with an optional summary projected into the context of the new branch.
Ported from pi's BranchSummaryEntry.
- Inheritance
-
- Object
- SessionRecord
- BranchSummaryRecord
Constructors
- BranchSummaryRecord({required String id, required String? parentId, required DateTime timestamp, required String fromId, required String summary, Object? details, bool? fromHook})
-
Creates a BranchSummaryRecord.
const
Properties
- details → Object?
-
Optional structured details.
final
- fromHook → bool?
-
Whether the navigation was triggered by a hook.
final
- fromId → String
-
Id of the record the conversation returned to.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Unique record id (short random id generated by the storage).
finalinherited
- parentId → String?
-
Id of the parent record, or
nullfor a tree root.finalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- summary → String
-
Summary of the abandoned branch (empty when none was generated).
final
- timestamp → DateTime
-
When the record was created.
finalinherited
- type → String
-
The type discriminator written to JSON (pi's
typefield).no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
payloadJson(
) → Map< String, dynamic> -
Type-specific fields merged into toJson by subclasses.
override
-
toJson(
) → Map< String, dynamic> -
Serializes to a JSON map with the
typediscriminator (pi shape).inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited