pub fn encode<T>(value: &T) -> Result<Vec<u8>, StorageError>where T: Serialize,
Encodes a stored notification value as JSON.