static EventType fromJS(JSString value) { var dartValue = value.toDart; return values.firstWhere((e) => e.value == dartValue); }