static EventType getByValue(int value) { return EventType.values.firstWhere((x) => x.value == value); }