toScope method

Scope toScope()

Implementation

Scope toScope() {
  switch (this) {
    case 'task':
      return Scope.task;
    case 'shared':
      return Scope.shared;
  }
  throw Exception('$this is not known in enum Scope');
}