toSamplingStrategyName method
Implementation
SamplingStrategyName toSamplingStrategyName() {
switch (this) {
case 'PartialScan':
return SamplingStrategyName.partialScan;
case 'FixedRate':
return SamplingStrategyName.fixedRate;
}
throw Exception('$this is not known in enum SamplingStrategyName');
}