SampleConfig.fromJson constructor
SampleConfig.fromJson(
- Object? j
Implementation
factory SampleConfig.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return SampleConfig(
initialBatchSamplePercentage:
switch (json['initialBatchSamplePercentage']) {
null => null,
Object $1 => decodeInt($1),
},
followingBatchSamplePercentage:
switch (json['followingBatchSamplePercentage']) {
null => null,
Object $1 => decodeInt($1),
},
sampleStrategy: switch (json['sampleStrategy']) {
null => SampleConfig_SampleStrategy.$default,
Object $1 => SampleConfig_SampleStrategy.fromJson($1),
},
);
}