So this serializer will supports only basic rollups as of now. I am going to make it generic by adding cases for other rollup types in a later PR.