public class AnalyticsConfiguration
extends java.lang.Object
| Constructor and Description |
|---|
AnalyticsConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
static AnalyticsConfiguration |
fromJson(org.json.JSONObject json)
Parse an
AnalyticsConfiguration from json. |
java.lang.String |
getUrl() |
boolean |
isEnabled() |
org.json.JSONObject |
toJson()
Serialize the
AnalyticsConfiguration to json. |
public static AnalyticsConfiguration fromJson(org.json.JSONObject json)
AnalyticsConfiguration from json.json - The JSONObject to parse.AnalyticsConfiguration instance with data that was able to be parsed from
the JSONObject.public org.json.JSONObject toJson()
AnalyticsConfiguration to json.JSONObject containing the AnalyticsConfiguration.public java.lang.String getUrl()
String url of the Braintree analytics service.public boolean isEnabled()
true if analytics are enabled, false otherwise.