toInputDeviceState method

InputDeviceState toInputDeviceState()

Implementation

InputDeviceState toInputDeviceState() {
  switch (this) {
    case 'IDLE':
      return InputDeviceState.idle;
    case 'STREAMING':
      return InputDeviceState.streaming;
  }
  throw Exception('$this is not known in enum InputDeviceState');
}