toStreamProcessorStatus method

StreamProcessorStatus toStreamProcessorStatus()

Implementation

StreamProcessorStatus toStreamProcessorStatus() {
  switch (this) {
    case 'STOPPED':
      return StreamProcessorStatus.stopped;
    case 'STARTING':
      return StreamProcessorStatus.starting;
    case 'RUNNING':
      return StreamProcessorStatus.running;
    case 'FAILED':
      return StreamProcessorStatus.failed;
    case 'STOPPING':
      return StreamProcessorStatus.stopping;
  }
  throw Exception('$this is not known in enum StreamProcessorStatus');
}