AnalysisMetricArtifact class
Artifact containing a single numeric metric value.
- Inheritance
-
- Object
- AnalysisArtifact
- AnalysisMetricArtifact
Constructors
- AnalysisMetricArtifact({required String artifactId, required String name, required AnalysisArtifactProvenance provenance, required dynamic value, required String unit, required AnalysisTimeRange timeRange})
- Cannot be const due to dynamic field.
-
AnalysisMetricArtifact.fromJson(Map<
String, dynamic> json) -
Create from JSON.
factory
Properties
- artifactId → String
-
Unique artifact identifier.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Human-readable artifact name.
finalinherited
- provenance → AnalysisArtifactProvenance
-
Provenance metadata describing origin and lineage.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeRange → AnalysisTimeRange
-
Time range over which the metric was computed.
final
- type → AnalysisArtifactType
-
Type of this artifact.
finalinherited
- unit → String
-
Unit of measurement.
final
- value → dynamic
-
The metric value.
final
Methods
-
baseToJson(
) → Map< String, dynamic> -
Serialize base fields shared by all artifact types.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Convert to JSON. Subclasses must implement this.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited