toNotificationState method
Implementation
NotificationState toNotificationState() {
switch (this) {
case 'OK':
return NotificationState.ok;
case 'ALARM':
return NotificationState.alarm;
}
throw Exception('$this is not known in enum NotificationState');
}