whitelist attributes to serialize.