fromName static method

DyteRecordingState fromName(
  1. String state
)

Implementation

static DyteRecordingState fromName(String state) {
  switch (state) {
    case "starting":
      return DyteRecordingState.starting;
    case "recording":
      return DyteRecordingState.recording;
    case "stopping":
      return DyteRecordingState.stopping;
    case "idle":
      return DyteRecordingState.idle;
    default:
      return DyteRecordingState.idle;
  }
}