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.booking != null) {
json[r'booking'] = this.booking;
} else {
json[r'booking'] = null;
}
if (this.rating != null) {
json[r'rating'] = this.rating;
} else {
json[r'rating'] = null;
}
if (this.comment != null) {
json[r'comment'] = this.comment;
} else {
json[r'comment'] = null;
}
if (this.serialCourseCustomer != null) {
json[r'serial_course_customer'] = this.serialCourseCustomer;
} else {
json[r'serial_course_customer'] = null;
}
return json;
}