Serializing group #stat_total data

I am using grouping in my grid.
myGrid.groupBy(0, ["","","#title","","#stat_total"]);

The data is serialized.
myGrid.setSerializationLevel(true, true, true, true, false, false);
myGrid.serializeToCSV();

When the grouping is done, the total value of the the group in the last column is displayed correctly against the expand /collapse button (+/-).

I do not get this data as part of serialized data. May be as this is not considered as a separate row, it is not serialized.
Please help me know how to serialize this row/value which is in “#stat_total”.

Default serialization logic will not include group headers in the output, only data will be included.

Any solution to include group header data in the output?