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

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

        return venmoAccountNonce;
    }
Convert an API response to an {@link VenmoAccountNonce}.

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