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'course'] = this.course;
json[r'subject'] = this.subject;
if (this.sessionId != null) {
json[r'session_id'] = this.sessionId;
} else {
json[r'session_id'] = null;
}
if (this.firstName != null) {
json[r'first_name'] = this.firstName;
} else {
json[r'first_name'] = null;
}
if (this.lastName != null) {
json[r'last_name'] = this.lastName;
} else {
json[r'last_name'] = null;
}
if (this.email != null) {
json[r'email'] = this.email;
} else {
json[r'email'] = null;
}
json[r'phone'] = this.phone;
return json;
}