dtoToSwitchState function
- SwitchStateDTO? switchState
Implementation
SwitchState? dtoToSwitchState(SwitchStateDTO? switchState) {
switch (switchState) {
case SwitchStateDTO.swaggerGeneratedUnknown:
case null:
return null;
case SwitchStateDTO.auto:
return SwitchState.auto;
case SwitchStateDTO.manual:
return SwitchState.manual;
case SwitchStateDTO.off:
return SwitchState.off;
}
}