Return an object with only whitelisted properties.