eventTypeFromString function
Implementation
DatabaseEventType eventTypeFromString(String value) {
if (!_eventTypeFromStringMap.containsKey(value)) {
throw Exception('Unknown event type: $value');
}
return _eventTypeFromStringMap[value]!;
}