write abstract method
Write data to storage.
key is the unique query key.
json is a plain Map<String, dynamic> containing the serialized data
and metadata (timestamp, version). It is NOT a JSON-encoded string.
Implementation
Future<void> write(String key, Map<String, dynamic> json);