eventTypeFromString function

DatabaseEventType eventTypeFromString(
  1. String value
)

Implementation

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