toDistribution method
Implementation
Distribution toDistribution() {
switch (this) {
case 'Random':
return Distribution.random;
case 'ByLogStream':
return Distribution.byLogStream;
}
throw Exception('$this is not known in enum Distribution');
}