code: public Map<String, Object> objectToMap(Object object) {
          ObjectMapper mapper = new ObjectMapper();
  
          return mapper.convertValue(object, Map.class);
      }
docs: This method is used to cast a {@code Object} to {@code Map<String, Object>}. The main
  objective of this method is objectToMap the objects from response Map to make possible
  catch its attributes' values.
  
  @param   object
  {@code Object} any Object type.
  
  @return  {@code Map<String, Object>}