parseEventType method

EventType? parseEventType()

Implementation

EventType? parseEventType() {
  switch (this) {
    case 'upload':
      return EventType.upload;
    case 'analysis':
      return EventType.analysis;
    default:
      return null;
  }
}