Suggestion class
Constructors
- Suggestion({bool? automatable, String? detail, String? rationale, String? stepId, String? title, int? unlocks})
- Returns a new Suggestion instance.
Properties
- automatable ↔ bool?
-
Automatable is true when the step names a tool, so the Business AI can do it rather than only describe it.
getter/setter pair
- detail ↔ String?
-
Detail is the step's own prose — what it asks for.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- rationale ↔ String?
-
Rationale is why this step is being suggested NOW, written for the person reading it. It explains the ranking, not the step.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stepId ↔ String?
-
StepID is the checklist step being recommended — the id every step route takes, so a caller can act on the suggestion directly.
getter/setter pair
- title ↔ String?
-
Title is the step's own one-line quest.
getter/setter pair
- unlocks ↔ int?
-
Unlocks is how many downstream steps completing this one immediately makes available (its leverage) — the primary ranking key.
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) → Suggestion? -
Returns a new Suggestion instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< Suggestion> -
mapFromJson(
dynamic json) → Map< String, Suggestion> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< Suggestion> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.