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.ordering != null) {
    json[r'ordering'] = this.ordering;
  } else {
    json[r'ordering'] = null;
  }
    json[r'name'] = this.name;
  if (this.isPopular != null) {
    json[r'is_popular'] = this.isPopular;
  } else {
    json[r'is_popular'] = null;
  }
    json[r'icon'] = this.icon;
    json[r'slug'] = this.slug;
  return json;
}