ToFirestore<T> typedef
ToFirestore<T> =
Map<String, Object?> Function(T value, SetOptions? options)
Turns a T into the data written for a document: the toFirestore argument of withConverter.
options are those of the set call, if any.
Implementation
typedef ToFirestore<T> =
Map<String, Object?> Function(T value, SetOptions? options);