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

        GraphQLConfiguration graphQLConfiguration = new GraphQLConfiguration();
        graphQLConfiguration.mUrl = Json.optString(json, Keys.URL, "");
        graphQLConfiguration.mFeatures = parseJsonFeatures(json.optJSONArray(Keys.FEATURES));

        return graphQLConfiguration;
    }
public static GraphQLConfiguration fromJson(JSONObject json) {
        if (json == null) {
            json = new JSONObject();
        }

        GraphQLConfiguration graphQLConfiguration = new GraphQLConfiguration();
        graphQLConfiguration.mUrl = Json.optString(json, Keys.URL, "");
        graphQLConfiguration.mFeatures = parseJsonFeatures(json.optJSONArray(Keys.FEATURES));

        return graphQLConfiguration;
    }
public static GraphQLConfiguration fromJson ( JSONObject json ) { if ( json == null ) { json = new JSONObject ( ) ; } GraphQLConfiguration graphQLConfiguration = new GraphQLConfiguration ( ) ; graphQLConfiguration . mUrl = Json . optString ( json , Keys . URL , "" ) ; graphQLConfiguration . mFeatures = parseJsonFeatures ( json . optJSONArray ( Keys . FEATURES ) ) ; return graphQLConfiguration ; }
Parse a {@link GraphQLConfiguration} from json.

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