getHMSPollCategoryFromString static method

HMSPollCategory getHMSPollCategoryFromString(
  1. String pollCategory
)

Implementation

static HMSPollCategory getHMSPollCategoryFromString(String pollCategory) {
  switch (pollCategory) {
    case "poll":
      return HMSPollCategory.poll;
    case "quiz":
      return HMSPollCategory.quiz;
    default:
      return HMSPollCategory.poll;
  }
}