code: public static <T> T jsonMapToObject(final Map<String, Object> map, final Class<T> valueType,
        final ObjectMapper objectMapper) throws IOException {
      if (map == null) {
        return null;
      }
      Validate.notNull(valueType, "valueType must not be null");
      if (objectMapper == null) {
        return DEFAULT_OBJECT_MAPPER
            .readValue(DEFAULT_OBJECT_MAPPER.writeValueAsBytes(map), valueType);
      }
      return objectMapper.readValue(objectMapper.writeValueAsBytes(map), valueType);
    }
docs: Transforms a JSON map into an object.
  
  @param <T>          the type parameter
  @param map          the JSON map
  @param valueType    the class of the target object
  @param objectMapper the JSON object mapper (can be null)
  @return the target object
  @throws IOException if transformation fails