fromName static method

DyteLivestreamStatus fromName(
  1. String name
)

Implementation

static DyteLivestreamStatus fromName(String name) {
  switch (name) {
    case "none":
      return DyteLivestreamStatus.none;
    case "starting":
      return DyteLivestreamStatus.starting;
    case "started":
      return DyteLivestreamStatus.started;
    case "ending":
      return DyteLivestreamStatus.ending;
    case "ended":
      return DyteLivestreamStatus.ended;
    case "errored":
      return DyteLivestreamStatus.errored;
    default:
      return DyteLivestreamStatus.none;
  }
}