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;
}
json[r'name'] = this.name;
if (this.longDescription != null) {
json[r'long_description'] = this.longDescription;
} else {
json[r'long_description'] = null;
}
if (this.minYears != null) {
json[r'min_years'] = this.minYears;
} else {
json[r'min_years'] = null;
}
if (this.maxYears != null) {
json[r'max_years'] = this.maxYears;
} else {
json[r'max_years'] = null;
}
if (this.ordering != null) {
json[r'ordering'] = this.ordering;
} else {
json[r'ordering'] = null;
}
if (this.slug != null) {
json[r'slug'] = this.slug;
} else {
json[r'slug'] = null;
}
return json;
}