MapperCallback<T> typedef

MapperCallback<T> = Map<String, dynamic> Function(T item)

Map an DBModel to a [Map<String, dynamic> so that Firestore can understand which fields to be updated. Put only fields that's needed to be updated in the returning Map.

Implementation

typedef MapperCallback<T> = Map<String, dynamic> Function(T item);