static VenmoConfiguration fromJson ( JSONObject json ) { if ( json == null ) { json = new JSONObject ( ) ; } VenmoConfiguration venmoConfiguration = new VenmoConfiguration ( ) ; venmoConfiguration . mAccessToken = Json . optString ( json , ACCESS_TOKEN_KEY , "" ) ; venmoConfiguration . mEnvironment = Json . optString ( json , ENVIRONMENT_KEY , "" ) ; venmoConfiguration . mMerchantId = Json . optString ( json , MERCHANT_ID_KEY , "" ) ; return venmoConfiguration ; }
Parses the Venmo configuration from json .