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