toPlacementStrategyType method

PlacementStrategyType toPlacementStrategyType()

Implementation

PlacementStrategyType toPlacementStrategyType() {
  switch (this) {
    case 'random':
      return PlacementStrategyType.random;
    case 'spread':
      return PlacementStrategyType.spread;
    case 'binpack':
      return PlacementStrategyType.binpack;
  }
  throw Exception('$this is not known in enum PlacementStrategyType');
}