UserExperimentVariant.fromJson constructor

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

Implementation

factory UserExperimentVariant.fromJson(Map<String, dynamic> json) {
  return UserExperimentVariant(
    experimentId: json['experimentId'],
    experimentName: json['experimentName'],
    variantId: json['variantId'],
    variantName: json['variantName'],
    variantWeight: json['variantWeight'],
    payload: json['payload'] != null ? Map<String, dynamic>.from(json['payload']) : null,
  );
}