toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'id'] = this.id;
  json[r'project'] = this.project;
  if (this.nameDe != null) {
    json[r'name_de'] = this.nameDe;
  } else {
    json[r'name_de'] = null;
  }
  if (this.nameEn != null) {
    json[r'name_en'] = this.nameEn;
  } else {
    json[r'name_en'] = null;
  }
  if (this.nameFr != null) {
    json[r'name_fr'] = this.nameFr;
  } else {
    json[r'name_fr'] = null;
  }
  if (this.nameIt != null) {
    json[r'name_it'] = this.nameIt;
  } else {
    json[r'name_it'] = null;
  }
  json[r'slug'] = this.slug;
  return json;
}