toActivityStreamStatus method

ActivityStreamStatus toActivityStreamStatus()

Implementation

ActivityStreamStatus toActivityStreamStatus() {
  switch (this) {
    case 'stopped':
      return ActivityStreamStatus.stopped;
    case 'starting':
      return ActivityStreamStatus.starting;
    case 'started':
      return ActivityStreamStatus.started;
    case 'stopping':
      return ActivityStreamStatus.stopping;
  }
  throw Exception('$this is not known in enum ActivityStreamStatus');
}