toScaleUnit method

ScaleUnit toScaleUnit()

Implementation

ScaleUnit toScaleUnit() {
  switch (this) {
    case 'PERCENT':
      return ScaleUnit.percent;
  }
  throw Exception('$this is not known in enum ScaleUnit');
}