EvaluationResult.fromJson constructor

EvaluationResult.fromJson(
  1. Map<String, dynamic> json
)

Implementation

EvaluationResult.fromJson(Map<String, dynamic> json) {
  flagKey = json['flagKey'];
  value = json['value'];
  source = json['source'];
  reason = json['reason'];
  timestamp = json['timestamp'];
  variant =
      json['variant'] != null
          ? new VariantInfo.fromJson(json['variant'])
          : null;
  error =
      json['error'] != null
          ? new EvaluationError.fromJson(json['error'])
          : null;
}