toStreamStatus method

StreamStatus toStreamStatus()

Implementation

StreamStatus toStreamStatus() {
  switch (this) {
    case 'CREATING':
      return StreamStatus.creating;
    case 'DELETING':
      return StreamStatus.deleting;
    case 'ACTIVE':
      return StreamStatus.active;
    case 'UPDATING':
      return StreamStatus.updating;
  }
  throw Exception('$this is not known in enum StreamStatus');
}