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