getHMSPollStateFromString static method

HMSPollState getHMSPollStateFromString(
  1. String pollState
)

Implementation

static HMSPollState getHMSPollStateFromString(String pollState) {
  switch (pollState) {
    case "started":
      return HMSPollState.started;
    case "stopped":
      return HMSPollState.stopped;
    case "created":
      return HMSPollState.created;
    default:
      return HMSPollState.created;
  }
}