toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['userType'] = this.userType;
  data['anonId'] = this.anonId;
  data['userId'] = this.userId;
  data['eventType'] = this.eventType;
  data['eventLocation'] = this.eventLocation;
  data['deviceType'] = this.deviceType;
  data['pageType'] = this.pageType;
  data['scrollDepth'] = this.scrollDepth;
  data['pageLength'] = this.pageLength;
  data['userSourceData'] = this.userSourceData;
  data['clientId'] = this.clientId;
  data['idleTimeSpent'] = this.idleTimeSpent;
  data['activeTimeSpent'] = this.activeTimeSpent;
  data['totalTimeSpent'] = this.totalTimeSpent;
  data['contentId'] = this.contentId;
  data['adblocker'] = this.adblocker;
  data['premiumContent'] = this.premiumContent;
  data['unlockedStatus'] = this.unlockedStatus;
  data['accessType'] = this.accessType;
  data['url'] = this.url;
  data['osName'] = this.osName;
  data['browser'] = this.browser;
  data['userAgent'] = this.userAgent;
  data['osVersion'] = this.osVersion;
  data['mobileModel'] = this.mobileModel;
  return data;
}