pub fn to_value<T>(value: &T) -> Result<Option<Value>, Error>where T: Serialize,
Convert T into a Value.
T
Value