toStepState method
Implementation
StepState toStepState() {
switch (this) {
case 'PENDING':
return StepState.pending;
case 'CANCEL_PENDING':
return StepState.cancelPending;
case 'RUNNING':
return StepState.running;
case 'COMPLETED':
return StepState.completed;
case 'CANCELLED':
return StepState.cancelled;
case 'FAILED':
return StepState.failed;
case 'INTERRUPTED':
return StepState.interrupted;
}
throw Exception('$this is not known in enum StepState');
}