Braintree/src/main/java/com/braintreepayments/api/models/VisaCheckoutNonce.java
public static VisaCheckoutNonce fromJson(String json) throws JSONException {
        VisaCheckoutNonce visaCheckoutNonce = new VisaCheckoutNonce();
        visaCheckoutNonce.fromJson(PaymentMethodNonce.getJsonObjectForType(API_RESOURCE_KEY, new JSONObject(json)));

        return visaCheckoutNonce;
    }
public static VisaCheckoutNonce fromJson(String json) throws JSONException {
        VisaCheckoutNonce visaCheckoutNonce = new VisaCheckoutNonce();
        visaCheckoutNonce.fromJson(PaymentMethodNonce.getJsonObjectForType(API_RESOURCE_KEY, new JSONObject(json)));

        return visaCheckoutNonce;
    }
Convert an API response to a {@link VisaCheckoutNonce}.

@param json Raw JSON response from Braintree of a {@link VisaCheckoutNonce}.
@return {@link VisaCheckoutNonce}.
@throws JSONException when parsing the response fails.