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.customer != null) {
json[r'customer'] = this.customer;
} else {
json[r'customer'] = null;
}
if (this.tutor != null) {
json[r'tutor'] = this.tutor;
} else {
json[r'tutor'] = null;
}
if (this.showCustomerFeedbackOnSite != null) {
json[r'show_customer_feedback_on_site'] = this.showCustomerFeedbackOnSite;
} else {
json[r'show_customer_feedback_on_site'] = null;
}
if (this.subject != null) {
json[r'subject'] = this.subject;
} else {
json[r'subject'] = null;
}
if (this.customerFeedbackNotes != null) {
json[r'customer_feedback_notes'] = this.customerFeedbackNotes;
} else {
json[r'customer_feedback_notes'] = null;
}
if (this.customerFeedbackStatus != null) {
json[r'customer_feedback_status'] = this.customerFeedbackStatus;
} else {
json[r'customer_feedback_status'] = null;
}
if (this.customerFeedbackCreatedAt != null) {
json[r'customer_feedback_created_at'] = this.customerFeedbackCreatedAt!.toUtc().toIso8601String();
} else {
json[r'customer_feedback_created_at'] = null;
}
if (this.customerFeedbackRating != null) {
json[r'customer_feedback_rating'] = this.customerFeedbackRating;
} else {
json[r'customer_feedback_rating'] = null;
}
if (this.customerFeedbackExcellent != null) {
json[r'customer_feedback_excellent'] = this.customerFeedbackExcellent;
} else {
json[r'customer_feedback_excellent'] = null;
}
return json;
}