CreateBody class

Constructors

CreateBody({String? exposureEvent, String? flagKey, required String id, required String metricEvent, String? name, String? subjectKind, List<Arm> variants = const []})
Returns a new CreateBody instance.

Properties

exposureEvent ↔ String?
ExposureEvent is the event that marks a subject as enrolled — the analysis denominator — defaulting to the SDK's $feature_flag_called marker.
getter/setter pair
flagKey ↔ String?
FlagKey names the assignment flag this experiment writes, defaulting to exp_
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String
ID is the experiment's slug, claimed once per project. It must match A-Za-z0-9._-{0,127}.
getter/setter pair
metricEvent ↔ String
MetricEvent is the event that counts as a conversion — the analysis numerator.
getter/setter pair
name ↔ String?
Name is free text for a reader; the id is what addresses the experiment.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
subjectKind ↔ String?
SubjectKind is the unit assigned and measured: user (the default), org, session or audience.
getter/setter pair
variants ↔ List<Arm>
Arms are the arms, at least two. Weights that are all zero become an even split; otherwise they must sum to 100, and at most one arm may be flagged control.
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) → CreateBody?
Returns a new CreateBody instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<CreateBody>
mapFromJson(dynamic json) → Map<String, CreateBody>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<CreateBody>>

Constants

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