HSIState class
Typed HSI state emitted by Synheart.onStateUpdate.
Provides typed axis accessors and retains rawJson for diagnostic use.
modalities and tiers are derived from meta.provenance.sources[*] .signals and meta.synheart.tiers per the Synheart signal-modality
mapping contract.
Constructors
-
HSIState({required String subjectId, required int timestampMs, required HSIAxes hsi, required String rawJson, Modalities modalities = const Modalities(), Tiers tiers = const Tiers(), Map<
String, String> stateWithheld = const <String, String>{}, Map<String, dynamic> ? sensing, String? parseError}) -
const
- HSIState.fromJson(String json, {String subjectId = ''})
-
Parse an HSI JSON string from the runtime into a typed HSIState.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasParseError → bool
-
True when this state is a parse-failure fallback rather than real output.
no setter
- hsi → HSIAxes
-
final
- modalities → Modalities
-
final
- parseError → String?
-
Non-null when fromJson could not parse rawJson and fell back to empty
axes.
final
- rawJson → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sensing
→ Map<
String, dynamic> ? -
meta.synheart.sensing— the sensing profile this window was produced under, or null when the host declared none.final -
stateWithheld
→ Map<
String, String> -
Axes the engine omitted, mapped to why —
meta.synheart.state_withheld.final - subjectId → String
-
final
- tiers → Tiers
-
final
- timestampMs → int
-
final
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