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.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;
  }
  return json;
}