fromInt static method
Creates a SessionHash enum from an integer value
value
should be one of:
- 0: SessionHash.disabled
- 1: SessionHash.enabled
- 2: SessionHash.notSet
Returns SessionHash.disabled for any other value
Implementation
static SessionHash fromInt(int value) {
switch (value) {
case 0:
return SessionHash.disabled;
case 1:
return SessionHash.enabled;
case 2:
return SessionHash.notSet;
default:
return SessionHash.disabled;
}
}