toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.totalEverSeen != null) {
    json[r'total_ever_seen'] = this.totalEverSeen;
  } else {
    json[r'total_ever_seen'] = null;
  }
  if (this.totalDeleted != null) {
    json[r'total_deleted'] = this.totalDeleted;
  } else {
    json[r'total_deleted'] = null;
  }
  if (this.deletionRatePct != null) {
    json[r'deletion_rate_pct'] = this.deletionRatePct;
  } else {
    json[r'deletion_rate_pct'] = null;
  }
  if (this.avgMonthsAlive != null) {
    json[r'avg_months_alive'] = this.avgMonthsAlive;
  } else {
    json[r'avg_months_alive'] = null;
  }
    json[r'timeline'] = this.timeline;
    json[r'top_by_downloads'] = this.topByDownloads;
  return json;
}