Serialization must be on a class with at least one attribute