storedJson function

Map<String, Object?> storedJson(
  1. Map<String, Object?> data
)

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)};