toBuildPhaseType method

BuildPhaseType toBuildPhaseType()

Implementation

BuildPhaseType toBuildPhaseType() {
  switch (this) {
    case 'SUBMITTED':
      return BuildPhaseType.submitted;
    case 'QUEUED':
      return BuildPhaseType.queued;
    case 'PROVISIONING':
      return BuildPhaseType.provisioning;
    case 'DOWNLOAD_SOURCE':
      return BuildPhaseType.downloadSource;
    case 'INSTALL':
      return BuildPhaseType.install;
    case 'PRE_BUILD':
      return BuildPhaseType.preBuild;
    case 'BUILD':
      return BuildPhaseType.build;
    case 'POST_BUILD':
      return BuildPhaseType.postBuild;
    case 'UPLOAD_ARTIFACTS':
      return BuildPhaseType.uploadArtifacts;
    case 'FINALIZING':
      return BuildPhaseType.finalizing;
    case 'COMPLETED':
      return BuildPhaseType.completed;
  }
  throw Exception('$this is not known in enum BuildPhaseType');
}