registerSerializer<T> static method
Creates a paginator for Firestore queries. Maybe in next versions. Registers a serializer for a specific type. Needed for dynamically serializing objects. NOTE: This function is called by generated code in the target Flutter app. You should not call this function directly in your code.
Implementation
// static FSPaginator<T> paginate<T>({ String? lastDocumentID, int limit = 10, String? subcollection }) {
// return FSPaginator<T>(lastDocumentID: lastDocumentID, numOfDocuments: limit, subcollection: subcollection);
// }
/// Registers a serializer for a specific type. Needed for dynamically serializing objects.
/// NOTE: This function is called by generated code in the target Flutter app.
/// You should not call this function directly in your code.
static void registerSerializer<T>(Map<String, dynamic> Function(T obj) function) {
serializers[T] = (dynamic obj) => function(obj as T);
}