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.

Implementation

typedef ToFirestore<T> =
    Map<String, Object?> Function(T value, SetOptions? options);