public void jsonize()

in tablestore/src/main/java/com/alicloud/openservices/tablestore/model/search/DescribeSearchIndexResponse.java [171:237]


    public void jsonize(StringBuilder sb, String newline) {
        sb.append('{');
        sb.append(newline);
        sb.append("\"IndexStatus\": ");
        if (indexStatus != null) {
            indexStatus.jsonize(sb, newline + "  ");
        } else {
            sb.append("null");
        }
        sb.append(",");
        sb.append(newline);
        sb.append("\"IndexSchema\": ");
        if (schema != null) {
            schema.jsonize(sb, newline + "  ");
        } else {
            sb.append("null");
        }
        sb.append(",");
        sb.append(newline);
        sb.append("\"SyncStat\": ");
        if (syncStat != null) {
            syncStat.jsonize(sb, newline + "  ");
        } else {
            sb.append("null");
        }

        if (brotherIndexName != null) {
            sb.append(",");
            sb.append(newline);
            sb.append("\"BrotherIndexName\": \"");
            sb.append(brotherIndexName);
            sb.append("\"");
        }

        if (queryFlowWeight != null && queryFlowWeight.size() > 0) {
            sb.append(",");
            sb.append(newline);
            sb.append("\"QueryFlowWeight\": [");
            boolean first = true;
            for (QueryFlowWeight queryFlowWeight : this.queryFlowWeight) {
                if (first) {
                    first = false;
                } else {
                    sb.append(",");
                    sb.append(newline + " ");
                }
                queryFlowWeight.jsonize(sb, newline + " ");
            }
            sb.append("]");
        }

        if (createTime != null) {
            sb.append(",");
            sb.append(newline);
            sb.append("\"CreateTime\": ");
            sb.append(createTime);
        }
        if (timeToLive != null) {
            sb.append(",");
            sb.append(newline);
            sb.append("\"TimeToLive\": ");
            sb.append(timeToLive);
        }

        sb.append(newline.substring(0, newline.length() - 2));
        sb.append("}");
    }