Change default serialization for class