toPolarization method

Polarization toPolarization()

Implementation

Polarization toPolarization() {
  switch (this) {
    case 'LEFT_HAND':
      return Polarization.leftHand;
    case 'NONE':
      return Polarization.none;
    case 'RIGHT_HAND':
      return Polarization.rightHand;
  }
  throw Exception('$this is not known in enum Polarization');
}