VariantEvaluationResponse class

Response for a variant flag evaluation.

Annotations
  • @JsonSerializable.new()

Constructors

VariantEvaluationResponse({required bool match, required List<String> segmentKeys, required String reason, required String flagKey, required String variantKey, required String variantAttachment, required double requestDurationMillis, required String timestamp})
VariantEvaluationResponse.fromJson(Map<String, dynamic> json)
factory

Properties

flagKey String
The flag key.
final
hashCode int
The hash code for this object.
no setterinherited
match bool
Whether the evaluation matched.
final
reason String
The reason for the evaluation result.
final
requestDurationMillis double
The request duration in milliseconds.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
segmentKeys List<String>
The segment keys involved in the evaluation.
final
timestamp String
The timestamp of the evaluation.
final
variantAttachment String
The variant attachment, if any.
final
variantKey String
The variant key returned.
final

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