Assignment class
Constructors
- Assignment({String? experiment, bool? on_, Object? payload, String? subject, String? variant})
- Returns a new Assignment instance.
Properties
- experiment ↔ String?
-
Trial is the experiment that was evaluated.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- on_ ↔ bool?
-
On is false when the flag returned nothing for this subject, which means the subject is not enrolled — not an error.
getter/setter pair
- payload ↔ Object?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subject ↔ String?
-
Subject is the unit that was bucketed.
getter/setter pair
- variant ↔ String?
-
Arm is the arm the subject falls in, empty when the flag enrolled it in none.
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) → Assignment? -
Returns a new Assignment instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< Assignment> -
mapFromJson(
dynamic json) → Map< String, Assignment> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< Assignment> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.