Braintree/src/main/java/com/braintreepayments/api/models/AnalyticsConfiguration.java
public static AnalyticsConfiguration fromJson(JSONObject json) {
        if (json == null) {
            json = new JSONObject();
        }

        AnalyticsConfiguration analyticsConfiguration = new AnalyticsConfiguration();
        analyticsConfiguration.mUrl = Json.optString(json, URL_KEY, null);

        return analyticsConfiguration;
    }
public static AnalyticsConfiguration fromJson(JSONObject json) {
        if (json == null) {
            json = new JSONObject();
        }

        AnalyticsConfiguration analyticsConfiguration = new AnalyticsConfiguration();
        analyticsConfiguration.mUrl = Json.optString(json, URL_KEY, null);

        return analyticsConfiguration;
    }
Parse an {@link AnalyticsConfiguration} from json.

@param json The {@link JSONObject} to parse.
@return An {@link AnalyticsConfiguration} instance with data that was able to be parsed from
the {@link JSONObject}.