toStreamView method

StreamView toStreamView()

Implementation

StreamView toStreamView() {
  switch (this) {
    case 'APP':
      return StreamView.app;
    case 'DESKTOP':
      return StreamView.desktop;
  }
  throw Exception('$this is not known in enum StreamView');
}