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;
}
if (this.startTime != null) {
json[r'start_time'] = this.startTime!.toUtc().toIso8601String();
} else {
json[r'start_time'] = null;
}
if (this.endTime != null) {
json[r'end_time'] = this.endTime!.toUtc().toIso8601String();
} else {
json[r'end_time'] = null;
}
if (this.location != null) {
json[r'location'] = this.location;
} else {
json[r'location'] = null;
}
return json;
}