protected String eventObjToBase64(MixpanelEvent event){
  Gson gson=new Gson();
  String json=gson.toJson(event);
  return toBase64(json.getBytes());
}

protected String eventObjToBase64 ( MixpanelEvent event ) { Gson gson = new Gson ( ) ; String json = gson . toJson ( event ) ; return toBase64 ( json . getBytes ( ) ) ; }
convert mixpanelevent to a base64 string ( format expected by mixpanel ) .
