Baseline class

A historical benchmark result kept for comparison (FR-009).

Constructors

Baseline({required String scenarioId, required String scenarioVersion, required String label, required Map<String, num> metrics, required DateTime timestamp, String gitCommit = 'unknown', String gitBranch = 'unknown', Map<String, String> environment = const {}})
Creates a baseline.
const
Baseline.fromJson(Map<String, dynamic> json)
Deserializes a baseline from its JSON representation.
factory

Properties

environment → Map<String, String>
Environment info (OS, Dart version, architecture...).
final
gitBranch → String
Git branch at baseline time.
final
gitCommit → String
Git commit at baseline time.
final
hashCode → int
The hash code for this object.
no setterinherited
label → String
Human-readable label (e.g. v1.0-release, weekly-2026-08-26).
final
metrics → Map<String, num>
Baseline metric values.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scenarioId → String
Scenario the baseline belongs to.
final
scenarioVersion → String
Scenario version at baseline time.
final
timestamp → DateTime
When the baseline was created.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serializes the baseline to a JSON-compatible map.
toString() → String
A string representation of this object.
inherited

Operators

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