code: private JsonElement convertValue(String value, JsonObject dataType) {
      if (dataType == null || !dataType.has(TYPE)) {
        return new JsonPrimitive(value);
      }
  
      String type = dataType.get(TYPE).getAsString().toUpperCase();
      ValueType valueType = ValueType.valueOf(type);
      return valueType.convert(value);
    }
docs: Convert string value to the expected type