AppraisalResult class

Complete result of appraisal metric computation.

Constructors

AppraisalResult({required String profileId, required String contextId, required DateTime asOf, required Map<String, MetricResult> metrics, required double aggregatedScore, required AppraisalMetadata metadata})
const
AppraisalResult.empty({required String profileId, String contextId = '', DateTime? asOf})
Create an empty appraisal result.
factory
AppraisalResult.fromJson(Map<String, dynamic> json)
factory

Properties

aggregatedScore → double
Aggregated overall score (0.0 - 1.0).
final
asOf → DateTime
Reference time for the appraisal.
final
contextId → String
Context ID being appraised.
final
hashCode → int
The hash code for this object.
no setterinherited
isHighConfidence → bool
Check if all metrics are high confidence (>= 0.6).
no setter
lowConfidenceMetrics → List<MetricResult>
Get low confidence metrics (<= 0.5).
no setter
metadata → AppraisalMetadata
Computation metadata.
final
metrics → Map<String, MetricResult>
Individual metric results.
final
profileId → String
Profile ID used for appraisal.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getMetric(String id) → MetricResult?
Get metric by ID.
getNormalizedValue(String id) → double?
Get normalized value for metric.
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.
inherited

Operators

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