toBuildBatchPhaseType method
Implementation
BuildBatchPhaseType toBuildBatchPhaseType() {
switch (this) {
case 'SUBMITTED':
return BuildBatchPhaseType.submitted;
case 'DOWNLOAD_BATCHSPEC':
return BuildBatchPhaseType.downloadBatchspec;
case 'IN_PROGRESS':
return BuildBatchPhaseType.inProgress;
case 'COMBINE_ARTIFACTS':
return BuildBatchPhaseType.combineArtifacts;
case 'SUCCEEDED':
return BuildBatchPhaseType.succeeded;
case 'FAILED':
return BuildBatchPhaseType.failed;
case 'STOPPED':
return BuildBatchPhaseType.stopped;
}
throw Exception('$this is not known in enum BuildBatchPhaseType');
}