toStreamStatus method

StreamStatus toStreamStatus()

Implementation

StreamStatus toStreamStatus() {
  switch (this) {
    case 'ACTIVE':
      return StreamStatus.active;
    case 'COMPLETED':
      return StreamStatus.completed;
    case 'CANCELED':
      return StreamStatus.canceled;
    case 'FAILED':
      return StreamStatus.failed;
    case 'IMPAIRED':
      return StreamStatus.impaired;
  }
  throw Exception('$this is not known in enum StreamStatus');
}