fromValue static method
Implementation
static DiveGasStatus fromValue(int value) {
switch (value) {
case 0:
return DiveGasStatus.disabled;
case 1:
return DiveGasStatus.enabled;
case 2:
return DiveGasStatus.backupOnly;
default:
throw ArgumentError.value(value);
}
}