public RequestBody serialize()

in src/main/java/com/alibaba/yjopenapi/client/api/ApiClient.java [400:412]


    public RequestBody serialize(Object obj, String contentType) throws ApiException {
        if (isJsonMime(contentType)) {
            String content;
            if (obj != null) {
                content = JSON.toJSONString(obj);
            } else {
                content = "";
            }
            return RequestBody.create(MediaType.parse(contentType), content);
        } else {
            throw new ApiException("Content type \"" + contentType + "\" is not supported");
        }
    }