toJSON method

Map<String, dynamic> toJSON()

Implementation

Map<String, dynamic> toJSON() {
  final Map<String, dynamic> settings = {};
  if (this.recordAnalytics != null) {
    settings['recordAnalytics'] = this.recordAnalytics;
  }
  if (this.enableQueryRules != null) {
    settings['enableQueryRules'] = this.enableQueryRules;
  }
  if (this.userId != null) {
    settings['userId'] = this.userId;
  }
  if (this.customEvents != null) {
    settings['customEvents'] = this.customEvents;
  }
  return settings;
}