toValue method
Implementation
String toValue() {
switch (this) {
case AlarmState.ok:
return 'OK';
case AlarmState.alarm:
return 'ALARM';
case AlarmState.insufficientData:
return 'INSUFFICIENT_DATA';
}
}
String toValue() {
switch (this) {
case AlarmState.ok:
return 'OK';
case AlarmState.alarm:
return 'ALARM';
case AlarmState.insufficientData:
return 'INSUFFICIENT_DATA';
}
}