toSubscriptionMessage method
Builds the JSON message used to subscribe or fetch this query.
Implementation
JsonMap toSubscriptionMessage(String type) {
return {
'type': type,
'collection': collection,
'filter': _deepCopyMap(filter),
'sort': Map<String, int>.from(sort),
if (limit != null) 'limit': limit,
'queryId': queryId,
};
}