toStatus method

Status toStatus()

Implementation

Status toStatus() {
  switch (this) {
    case 'IN_PROGRESS':
      return Status.inProgress;
    case 'SUCCEEDED':
      return Status.succeeded;
    case 'FAILED':
      return Status.failed;
  }
  throw Exception('$this is not known in enum Status');
}