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.label != null) {
json[r'label'] = this.label;
} else {
json[r'label'] = null;
}
if (this.category != null) {
json[r'category'] = this.category;
} else {
json[r'category'] = null;
}
if (this.wikiSlug != null) {
json[r'wiki_slug'] = this.wikiSlug;
} else {
json[r'wiki_slug'] = null;
}
if (this.modelCount != null) {
json[r'model_count'] = this.modelCount;
} else {
json[r'model_count'] = null;
}
if (this.totalDownloads != null) {
json[r'total_downloads'] = this.totalDownloads;
} else {
json[r'total_downloads'] = null;
}
if (this.wikiUrl != null) {
json[r'wiki_url'] = this.wikiUrl;
} else {
json[r'wiki_url'] = null;
}
json[r'top_authors'] = this.topAuthors;
json[r'sample_models'] = this.sampleModels;
return json;
}