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

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

        return localPaymentResult;
    }
Convert an API response to a {@link LocalPaymentResult}.

@param json Raw JSON representation of a {@link LocalPaymentResult}.
@return {@link LocalPaymentResult} for use in payment method selection UIs.