toInputRotate method

InputRotate toInputRotate()

Implementation

InputRotate toInputRotate() {
  switch (this) {
    case 'DEGREE_0':
      return InputRotate.degree_0;
    case 'DEGREES_90':
      return InputRotate.degrees_90;
    case 'DEGREES_180':
      return InputRotate.degrees_180;
    case 'DEGREES_270':
      return InputRotate.degrees_270;
    case 'AUTO':
      return InputRotate.auto;
  }
  throw Exception('$this is not known in enum InputRotate');
}