toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.exposureEvent != null) {
json[r'exposureEvent'] = this.exposureEvent;
} else {
json[r'exposureEvent'] = null;
}
if (this.flagKey != null) {
json[r'flagKey'] = this.flagKey;
} else {
json[r'flagKey'] = null;
}
json[r'id'] = this.id;
json[r'metricEvent'] = this.metricEvent;
if (this.name != null) {
json[r'name'] = this.name;
} else {
json[r'name'] = null;
}
if (this.subjectKind != null) {
json[r'subjectKind'] = this.subjectKind;
} else {
json[r'subjectKind'] = null;
}
json[r'variants'] = this.variants;
return json;
}