Registers an event.
static void registerEvent<T>(T Function(Map<String, dynamic>) func) => Event._registry[T] = func;