SampleConfig.fromJson constructor
Implementation
factory SampleConfig.fromJson(Map<String, dynamic> json) {
return SampleConfig(
initialBatchSamplePercentage: json['initialBatchSamplePercentage'],
followingBatchSamplePercentage: json['followingBatchSamplePercentage'],
sampleStrategy:
decodeEnum(
json['sampleStrategy'],
SampleConfig_SampleStrategy.fromJson,
) ??
SampleConfig_SampleStrategy.$default,
);
}