toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ActionStatus.standby:
      return 'STANDBY';
    case ActionStatus.pending:
      return 'PENDING';
    case ActionStatus.executionInProgress:
      return 'EXECUTION_IN_PROGRESS';
    case ActionStatus.executionSuccess:
      return 'EXECUTION_SUCCESS';
    case ActionStatus.executionFailure:
      return 'EXECUTION_FAILURE';
    case ActionStatus.reverseInProgress:
      return 'REVERSE_IN_PROGRESS';
    case ActionStatus.reverseSuccess:
      return 'REVERSE_SUCCESS';
    case ActionStatus.reverseFailure:
      return 'REVERSE_FAILURE';
    case ActionStatus.resetInProgress:
      return 'RESET_IN_PROGRESS';
    case ActionStatus.resetFailure:
      return 'RESET_FAILURE';
  }
}