fromString static method

GithubCopilotSessionStatus fromString(
  1. String status
)

Converts the Copilot session state from a string.

文字列からCopilotのセッションの状態を変換します。

Implementation

static GithubCopilotSessionStatus fromString(String status) {
  switch (status) {
    case "none":
      return none;
    case "unknown":
      return unknown;
    case "running":
    case "in_progress":
      return running;
    case "completed":
    case "success":
      return completed;
    case "failed":
    case "error":
      return failed;
    default:
      return unknown;
  }
}