ScoreView class

Constructors

ScoreView({String? comment, String? dataType, String? id, String? name, String? runName, String? stringValue, String? timestamp, String? traceId, num? value})
Returns a new ScoreView instance.

Properties

comment ↔ String?
Comment is the grader's reasoning, truncated at 2000 characters.
getter/setter pair
dataType ↔ String?
DataType is NUMERIC, CATEGORICAL or BOOLEAN.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the score event's handle.
getter/setter pair
name ↔ String?
Name is the score name, which a rubric of the same name governs.
getter/setter pair
runName ↔ String?
RunName is the run this score was recorded under, when it came from one.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stringValue ↔ String?
StringValue is the label of a CATEGORICAL score.
getter/setter pair
timestamp ↔ String?
Timestamp is when the score was recorded.
getter/setter pair
traceId ↔ String?
TraceID is the model call this score grades, when it grades one.
getter/setter pair
value ↔ num?
Value is the numeric score; for BOOLEAN it is 0 or 1.
getter/setter pair

Methods

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.
override

Operators

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

Static Methods

fromJson(dynamic value) → ScoreView?
Returns a new ScoreView instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<ScoreView>
mapFromJson(dynamic json) → Map<String, ScoreView>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<ScoreView>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.