toInputStartingPosition method

InputStartingPosition toInputStartingPosition()

Implementation

InputStartingPosition toInputStartingPosition() {
  switch (this) {
    case 'NOW':
      return InputStartingPosition.now;
    case 'TRIM_HORIZON':
      return InputStartingPosition.trimHorizon;
    case 'LAST_STOPPED_POINT':
      return InputStartingPosition.lastStoppedPoint;
  }
  throw Exception('$this is not known in enum InputStartingPosition');
}