JourneyStep class

Constructors

JourneyStep({Map<String, Object> args = const {}, List<String> deps = const [], String? detail, String? draft, String? draftInto, bool? enabled, String? id, String? section, String? signal, String? title, String? tool})
Returns a new JourneyStep instance.

Properties

args ↔ Map<String, Object>
Args are the tool's default arguments, merged under whatever the caller passes at run time, so a step ships with the arguments that make it work.
getter/setter pair
deps ↔ List<String>
Dependencies are step ids that must be done/skipped before this step is available. The wire key is deps (the blueprint contract); the Go field keeps its descriptive name.
getter/setter pair
detail ↔ String?
Detail is the juncture — what the Guide explains, or asks for, at this step.
getter/setter pair
draft ↔ String?
Draft, when set, is the prompt the embedded AI answers first; its output is folded into one of Args before the tool runs, so the model writes the content and the tool only delivers it.
getter/setter pair
draftInto ↔ String?
DraftInto names the argument the drafted text lands in. Empty means "brief".
getter/setter pair
enabled ↔ bool?
Enabled is the admin on/off lever. A NIL pointer reads as ENABLED (absence == on): a legacy/org curriculum that omits the field keeps every step, and only an explicit enabled: false (an admin disable) drops a step from the journey. See on() in blueprint.go and the Blueprint.Curriculum() projection.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the stable slug the whole plane addresses this step by — the value in deps, in next, in the progress rows, and in the URL of every step route. Renaming it orphans an org's recorded progress for this step.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
section ↔ String?
Section is the id of the phase this step groups under. A disabled section takes its steps out of the journey with it.
getter/setter pair
signal ↔ String?
Signal, when set, names a machine detector (detect.go). When the detector reports the org's real state present, the step auto-marks done.
getter/setter pair
title ↔ String?
Title is the one-line quest as a person reads it in the checklist.
getter/setter pair
tool ↔ String?
Tool, when set, names the MCP tool the Business AI runs for "do it for me". A step with no tool can only be completed by a person; it is the field the automatable flag on every projection of this step is derived from.
getter/setter pair

Methods

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

Operators

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

Static Methods

fromJson(dynamic value) → JourneyStep?
Returns a new JourneyStep instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<JourneyStep>
mapFromJson(dynamic json) → Map<String, JourneyStep>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<JourneyStep>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.