pub fn to_value(event: &ThreadEvent) -> Result<Value>
Converts an event into a serde_json::Value.
serde_json::Value