pub fn from_str(payload: &str) -> Result<ThreadEvent, Error>
Deserializes an event from a JSON string.