sessionStateToString static method

String sessionStateToString(
  1. SessionState state
)

Returns the string representation of the SessionState provided.

Implementation

static String sessionStateToString(SessionState state) {
  switch (state) {
    case SessionState.created:
      return "CREATED";
    case SessionState.running:
      return "RUNNING";
    case SessionState.failed:
      return "FAILED";
    case SessionState.completed:
      return "COMPLETED";
    default:
      return "";
  }
}