toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'dataByDateBucket'] = this.dataByDateBucket;
json[r'dataByUrlId'] = this.dataByUrlId;
json[r'countsByValue'] = this.countsByValue;
json[r'total'] = this.total;
if (this.average != null) {
json[r'average'] = this.average;
} else {
json[r'average'] = null;
}
json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
return json;
}