toJson method
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.totalModels != null) {
json[r'total_models'] = this.totalModels;
} else {
json[r'total_models'] = null;
}
if (this.totalDownloads != null) {
json[r'total_downloads'] = this.totalDownloads;
} else {
json[r'total_downloads'] = null;
}
if (this.totalLikes != null) {
json[r'total_likes'] = this.totalLikes;
} else {
json[r'total_likes'] = null;
}
if (this.firstSeenAt != null) {
json[r'first_seen_at'] = this.firstSeenAt;
} else {
json[r'first_seen_at'] = null;
}
json[r'models'] = this.models;
return json;
}