toEventType method

EventType toEventType()

Implementation

EventType toEventType() {
  switch (this) {
    case 'SYSTEM':
      return EventType.system;
    case 'CREATE_ACTION':
      return EventType.createAction;
    case 'DELETE_ACTION':
      return EventType.deleteAction;
    case 'UPDATE_ACTION':
      return EventType.updateAction;
    case 'EXECUTE_ACTION':
      return EventType.executeAction;
  }
  throw Exception('$this is not known in enum EventType');
}