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.author != null) {
    json[r'author'] = this.author;
  } else {
    json[r'author'] = null;
  }
  if (this.family != null) {
    json[r'family'] = this.family;
  } else {
    json[r'family'] = null;
  }
  if (this.paramsB != null) {
    json[r'params_b'] = this.paramsB;
  } else {
    json[r'params_b'] = null;
  }
  if (this.downloads != null) {
    json[r'downloads'] = this.downloads;
  } else {
    json[r'downloads'] = null;
  }
  if (this.lastSeenAt != null) {
    json[r'last_seen_at'] = this.lastSeenAt;
  } else {
    json[r'last_seen_at'] = null;
  }
  if (this.daysSinceGone != null) {
    json[r'days_since_gone'] = this.daysSinceGone;
  } else {
    json[r'days_since_gone'] = null;
  }
  return json;
}