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'student_personalities'] = this.studentPersonalities;
if (this.postcode != null) {
json[r'postcode'] = this.postcode;
} else {
json[r'postcode'] = null;
}
if (this.subject != null) {
json[r'subject'] = this.subject;
} else {
json[r'subject'] = null;
}
if (this.level != null) {
json[r'level'] = this.level;
} else {
json[r'level'] = null;
}
return json;
}