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;
    }
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.
Convert an API response to a { @link VisaCheckoutNonce } .