create serialize class to serialize virtus models to hash