code: public <T> T invoke(Context context, Class<T> classOfT, Type genericType) {
          T t = null;
          try {
              final String content = context.body();
              if (content == null || content.length() == 0) {
                  return null;
              }
              if (genericType != null) {
                  t = json.mapper().readValue(content,
                          json.mapper().constructType(genericType));
              } else {
                  t = json.mapper().readValue(content, classOfT);
              }
          } catch (IOException e) {
              LOGGER.error(ERROR, e);
          }
  
          return t;
      }
docs: Builds an instance of {@literal T} from the request payload.
  
  @param context  The context
  @param classOfT The class we expect
  @param <T>      the type of the object
  @return the build object, {@literal null} if the object cannot be built.