only serialize properties with getters and setters