toOperationStatus method

OperationStatus toOperationStatus()

Implementation

OperationStatus toOperationStatus() {
  switch (this) {
    case 'NotStarted':
      return OperationStatus.notStarted;
    case 'Started':
      return OperationStatus.started;
    case 'Failed':
      return OperationStatus.failed;
    case 'Completed':
      return OperationStatus.completed;
    case 'Succeeded':
      return OperationStatus.succeeded;
  }
  throw Exception('$this is not known in enum OperationStatus');
}