toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'by_browser'] = this.byBrowser;
  json[r'by_country'] = this.byCountry;
  json[r'by_device'] = this.byDevice;
  json[r'by_operating_system'] = this.byOperatingSystem;
  if (this.countOverTime != null) {
    json[r'count_over_time'] = this.countOverTime;
  } else {
    json[r'count_over_time'] = null;
  }
  if (this.maxConcurrent != null) {
    json[r'max_concurrent'] = this.maxConcurrent;
  } else {
    json[r'max_concurrent'] = null;
  }
  if (this.publishers != null) {
    json[r'publishers'] = this.publishers;
  } else {
    json[r'publishers'] = null;
  }
  if (this.subscribers != null) {
    json[r'subscribers'] = this.subscribers;
  } else {
    json[r'subscribers'] = null;
  }
  json[r'sum'] = this.sum;
  json[r'unique'] = this.unique;
  return json;
}