SleepScoreResult class
The canonical output of the batch scorer.
Constructors
-
SleepScoreResult({int? score, double? scoreNormalized, required double confidence, required SleepPath path, required SleepScoreMode mode, required SleepScoreBreakdown components, required SleepScoreAdjust adjustments, required ComponentWeights effectiveWeights, SleepScoreReason? reason, required int priorNightCount, required String pipelineVersion, required String modelId, required String constantsHash, List<
SleepFactor> explanation = const []}) -
const
-
SleepScoreResult.fromJson(Map<
String, Object?> json) -
factory
- SleepScoreResult.fromJsonString(String s)
-
factory
Properties
- adjustments → SleepScoreAdjust
-
final
- components → SleepScoreBreakdown
-
final
- confidence → double
-
final
- constantsHash → String
-
final
- effectiveWeights → ComponentWeights
-
final
-
explanation
→ List<
SleepFactor> -
Structured drivers of this score (see SleepFactor). Empty on
vendor-passthrough and proxy paths. Does not affect score.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- mode → SleepScoreMode
-
final
- modelId → String
-
final
- path → SleepPath
-
final
- pipelineVersion → String
-
final
- priorNightCount → int
-
final
- reason → SleepScoreReason?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- score → int?
-
final
- scoreNormalized → double?
-
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