toJson method
Converts this object to a JSON map.
Implementation
Map<String, dynamic> toJson() {
return {
if (from != null) 'from': from,
if (to != null) 'to': to,
if (limit != null) 'limit': limit,
if (visitorId != null) 'visitorId': visitorId,
if (distinctId != null) 'distinctId': distinctId,
};
}