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.created != null) {
json[r'created'] = this.created!.toUtc().toIso8601String();
} else {
json[r'created'] = null;
}
if (this.createdBy != null) {
json[r'created_by'] = this.createdBy;
} else {
json[r'created_by'] = null;
}
json[r'chat'] = this.chat;
if (this.type != null) {
json[r'type'] = this.type;
} else {
json[r'type'] = null;
}
if (this.booking != null) {
json[r'booking'] = this.booking;
} else {
json[r'booking'] = null;
}
if (this.invitation != null) {
json[r'invitation'] = this.invitation;
} else {
json[r'invitation'] = null;
}
if (this.enquiry != null) {
json[r'enquiry'] = this.enquiry;
} else {
json[r'enquiry'] = null;
}
if (this.tutorEnquiry != null) {
json[r'tutor_enquiry'] = this.tutorEnquiry;
} else {
json[r'tutor_enquiry'] = null;
}
if (this.personalityEnquiry != null) {
json[r'personality_enquiry'] = this.personalityEnquiry;
} else {
json[r'personality_enquiry'] = null;
}
json[r'content'] = this.content;
return json;
}