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