GBExperimentResult class

The result of running an Experiment given a specific Context

Annotations
  • @JsonSerializable()

Constructors

GBExperimentResult({double? bucket, String? featureId, String? hashAttribute, bool? hashUsed, String? hashValue, required bool inExperiment, required String key, bool? stickyBucketUsed, dynamic value, int? variationID, String? name, bool? passthrough})
GBExperimentResult.fromJson(Map<String, dynamic> value)
factory

Properties

bucket double?
The hash value used to assign a variation (double from 0 to 1)
getter/setter pair
featureId String?
The id of the feature (if any) that the experiment came from
getter/setter pair
hashAttribute String?
The user attribute used to assign a variation
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hashUsed bool?
If a hash was used to assign a variation
getter/setter pair
hashValue String?
The value of that attribute
getter/setter pair
inExperiment bool
Whether or not the user is part of the experiment
getter/setter pair
key String
The unique key for the assigned variation
getter/setter pair
name String?
The human-readable name of the assigned variation
getter/setter pair
passthrough bool?
Used for holdout groups
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stickyBucketUsed bool?
If sticky bucketing was used to assign a variation
getter/setter pair
value ↔ dynamic
The array value of the assigned variation
getter/setter pair
variationID int?
The array index of the assigned variation
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.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited