ScoreConfigReq class
Constructors
-
ScoreConfigReq({List<
String> categories = const [], String? dataType, num? maxValue, num? minValue, required String name}) - Returns a new ScoreConfigReq instance.
Properties
-
categories
↔ List<
String> -
Categories is the closed set of labels a CATEGORICAL score may carry. A CATEGORICAL rubric with none is refused.
getter/setter pair
- dataType ↔ String?
-
DataType is NUMERIC (the default), CATEGORICAL or BOOLEAN.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- maxValue ↔ num?
-
MaxValue is the inclusive ceiling a NUMERIC score must stay under, finite.
getter/setter pair
- minValue ↔ num?
-
MinValue is the inclusive floor a NUMERIC score must clear. It must be finite and must not exceed MaxValue.
getter/setter pair
- name ↔ String
-
Name is the score name this rubric governs, matching ^
A-Za-z0-9._-{0,63}$. The name is the key, so re-posting one replaces its rules.getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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) → ScoreConfigReq? -
Returns a new ScoreConfigReq instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< ScoreConfigReq> -
mapFromJson(
dynamic json) → Map< String, ScoreConfigReq> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< ScoreConfigReq> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.