Trial class

Constructors

Trial({String? createdAt, String? createdBy, String? decidedAt, String? decidedBy, String? exposureEvent, String? flagKey, String? id, String? metricEvent, String? name, String? project, String? status, String? subjectKind, List<Arm> variants = const [], String? winner})
Returns a new Trial instance.

Properties

createdAt ↔ String?
when it started assigning
getter/setter pair
createdBy ↔ String?
the credential that registered it
getter/setter pair
decidedAt ↔ String?
when the promotion took effect
getter/setter pair
decidedBy ↔ String?
the credential that promoted the winner
getter/setter pair
exposureEvent ↔ String?
the event that enrols a subject — the analysis denominator
getter/setter pair
flagKey ↔ String?
the assignment flag this experiment drives
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
the experiment's slug, unique within the project
getter/setter pair
metricEvent ↔ String?
the event that counts as a conversion — the numerator
getter/setter pair
name ↔ String?
free text for a reader
getter/setter pair
project ↔ String?
the sub-scope within the org, stamped from the principal
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status ↔ String?
running while it assigns and measures, decided once a winner is promoted
getter/setter pair
subjectKind ↔ String?
the unit assigned and measured: user, org, session or audience
getter/setter pair
variants ↔ List<Arm>
the arms, weighted, one of them the control
getter/setter pair
winner ↔ String?
the arm promoted to the whole rollout
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) → Trial?
Returns a new Trial instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Trial>
mapFromJson(dynamic json) → Map<String, Trial>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Trial>>

Constants

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