toCodeGenerationStatus method
Implementation
CodeGenerationStatus toCodeGenerationStatus() {
switch (this) {
case 'CREATE_IN_PROGRESS':
return CodeGenerationStatus.createInProgress;
case 'CREATE_COMPLETE':
return CodeGenerationStatus.createComplete;
case 'CREATE_FAILED':
return CodeGenerationStatus.createFailed;
}
throw Exception('$this is not known in enum CodeGenerationStatus');
}