storedJson function
A Firestore document's data as plain JSON: timestamps as milliseconds since the epoch (what the publish JSON stores), blobs as bytes, references as their path.
Implementation
Map<String, Object?> storedJson(Map<String, Object?> data) => {for (final e in data.entries) e.key: _plain(e.value)};