toMap method
Implementation
Map<String, dynamic> toMap() => {
"collection": collection,
"type": type.index,
if (pipeline != null) "pipeline": pipeline,
if (query != null) "query": query?.toMap(),
if (identifier != null) "identifier": identifier,
};