question: protected String eventObjToBase64 ( MixpanelEvent event ) { Gson gson = new Gson ( ) ; String json = gson . toJson ( event ) ; return toBase64 ( json . getBytes ( ) ) ; }
target:  Convert MixpanelEvent to a base64 string (format expected by Mixpanel).