public static boolean getBooleanParam ( JSONObject params , String paramName ) throws ApiException { if ( ! params . containsKey ( paramName ) ) { throw new ApiException ( ApiException . Type . MISSING_PARAMETER , paramName ) ; } try { return params . getBoolean ( paramName ) ; } catch ( JSONException e ) { throw new ApiException ( ApiException . Type . ILLEGAL_PARAMETER , paramName , e ) ; } }
Gets a boolean from the parameter with the given name .