toMap method
Implementation
Map<String, dynamic> toMap() {
var body = <String, dynamic>{
'eventType': eventType.toMap(),
'eventName': eventName,
'index': index,
'userToken': userToken,
};
if (timestamp != null) {
body['timestamp'] = timestamp!.millisecondsSinceEpoch;
}
if (queryID != null) body['queryID'] = queryID;
if (objectIDs != null) body['objectIDs'] = objectIDs;
if (filters != null) body['filters'] = filters;
if (positions != null) body['positions'] = positions;
return body;
}