Converting placeholder string to placeholder class on deserialize from database