encode method
Implementation
Map<String, dynamic> encode() {
return {
'__typename': 'ExperimentConfig',
'id': id,
'kind': kind?.encode(),
'distribution':
distribution?.map((e) => e.encode()).toList(growable: false),
'eventFrequencyConditions': eventFrequencyConditions
?.map((e) => e.encode())
.toList(growable: false),
'baseline': baseline?.encode(),
'variants': variants?.map((e) => e.encode()).toList(growable: false),
'seed': seed,
'frequency': frequency?.encode(),
'startedAt': startedAt,
'endedAt': endedAt,
};
}