public UserInsights(JSONObject userInsightsJSON) { JSONObject payInsightsJSON = null; try { payInsightsJSON = userInsightsJSON["pay"]; } catch (Exception e) { SoomlaUtils.LogError(TAG, "An error occurred while trying to fetch user pay insights when generating. error: " + e.Message); } PayInsights = new PayInsights(payInsightsJSON); }