ScoreReq class

Constructors

ScoreReq({String? comment, String? dataType, String? datasetItemId, String? datasetName, required String name, String? runName, String? stringValue, String? traceId, num? value})
Returns a new ScoreReq instance.

Properties

comment ↔ String?
Comment is the grader's reasoning, truncated at 2000 characters.
getter/setter pair
datasetItemId ↔ String?
ItemID attaches the score to one graded example.
getter/setter pair
datasetName ↔ String?
Dataset attaches the score to one dataset.
getter/setter pair
dataType ↔ String?
DataType is NUMERIC, CATEGORICAL or BOOLEAN. A declared rubric overrides it — a caller cannot claim a type the org's rubric contradicts.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
name ↔ String
Name is the score name. A rubric of the same name, if the org has declared one, decides this score's type and the values it may take.
getter/setter pair
runName ↔ String?
RunName attaches the score to one run.
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, which must be one the rubric allows.
getter/setter pair
traceId ↔ String?
TraceID attaches the score to one model call.
getter/setter pair
value ↔ num?
Value is the numeric score, which must be finite: NaN and Inf are refused. A BOOLEAN score takes 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) → ScoreReq?
Returns a new ScoreReq instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<ScoreReq>
mapFromJson(dynamic json) → Map<String, ScoreReq>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<ScoreReq>>

Constants

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