private FormBody bodyFromMap(Map<String,String> map){
  FormBody.Builder formBody=new FormBody.Builder();
  if (map != null) {
    for (    final Map.Entry<String,String> entrySet : map.entrySet()) {
      if (entrySet.getValue() != null) {
        formBody.add(entrySet.getKey(),entrySet.getValue());
      }
    }
  }
  return formBody.build();
}

private FormBody bodyFromMap ( Map < String , String > map ) { FormBody . Builder formBody = new FormBody . Builder ( ) ; if ( map != null ) { for ( final Map . Entry < String , String > entrySet : map . entrySet ( ) ) { if ( entrySet . getValue ( ) != null ) { formBody . add ( entrySet . getKey ( ) , entrySet . getValue ( ) ) ; } } } return formBody . build ( ) ; }
creates a request body from a map of params
