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