toActionStatus method
Implementation
ActionStatus toActionStatus() {
switch (this) {
case 'STANDBY':
return ActionStatus.standby;
case 'PENDING':
return ActionStatus.pending;
case 'EXECUTION_IN_PROGRESS':
return ActionStatus.executionInProgress;
case 'EXECUTION_SUCCESS':
return ActionStatus.executionSuccess;
case 'EXECUTION_FAILURE':
return ActionStatus.executionFailure;
case 'REVERSE_IN_PROGRESS':
return ActionStatus.reverseInProgress;
case 'REVERSE_SUCCESS':
return ActionStatus.reverseSuccess;
case 'REVERSE_FAILURE':
return ActionStatus.reverseFailure;
case 'RESET_IN_PROGRESS':
return ActionStatus.resetInProgress;
case 'RESET_FAILURE':
return ActionStatus.resetFailure;
}
throw Exception('$this is not known in enum ActionStatus');
}