toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.id != null) {
    json[r'id'] = this.id;
  } else {
    json[r'id'] = null;
  }
  if (this.firstSeenMonth != null) {
    json[r'first_seen_month'] = this.firstSeenMonth;
  } else {
    json[r'first_seen_month'] = null;
  }
  if (this.lastSeenMonth != null) {
    json[r'last_seen_month'] = this.lastSeenMonth;
  } else {
    json[r'last_seen_month'] = null;
  }
  if (this.totalMonthsAlive != null) {
    json[r'total_months_alive'] = this.totalMonthsAlive;
  } else {
    json[r'total_months_alive'] = null;
  }
  if (this.peakDownloads != null) {
    json[r'peak_downloads'] = this.peakDownloads;
  } else {
    json[r'peak_downloads'] = null;
  }
  if (this.createdAt != null) {
    json[r'created_at'] = this.createdAt;
  } else {
    json[r'created_at'] = null;
  }
  return json;
}