Wrapping event data in a hashmap if needed.