add Json and Hash serialization functions to VariaModel