StrategyView class
Constructors
-
StrategyView({String? action, String? category, String? id, List<
String> tags = const [], String? workload}) - Returns a new StrategyView instance.
Properties
- action ↔ String?
-
Action is the tactic itself: the thing to go and do.
getter/setter pair
- category ↔ String?
-
Category is the growth discipline the tactic belongs to — the axis
?category=narrows on.getter/setter pair - hashCode → int
-
The hash code for this object.
no setteroverride
- id ↔ String?
-
ID is the tactic's stable slug in the corpus.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
Tags are the PRECONDITIONS this tactic already satisfied to appear in the answer —
stage:<name>andhas:<capability>predicates over the org's observed profile. They are carried back so a caller can show why a tactic surfaced, not so it can filter again.getter/setter pair - workload ↔ String?
-
Workload is how much effort running the tactic costs, so a corpus can be cut to what the org has the hands for.
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) → StrategyView? -
Returns a new StrategyView instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< StrategyView> -
mapFromJson(
dynamic json) → Map< String, StrategyView> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< StrategyView> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.