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.isArchived != null) {
json[r'is_archived'] = this.isArchived;
} else {
json[r'is_archived'] = null;
}
if (this.created != null) {
json[r'created'] = this.created!.toUtc().toIso8601String();
} else {
json[r'created'] = null;
}
if (this.unreadCount != null) {
json[r'unread_count'] = this.unreadCount;
} else {
json[r'unread_count'] = null;
}
if (this.subjectSlug != null) {
json[r'subject_slug'] = this.subjectSlug;
} else {
json[r'subject_slug'] = null;
}
if (this.levelSlug != null) {
json[r'level_slug'] = this.levelSlug;
} else {
json[r'level_slug'] = null;
}
json[r'created_by'] = this.createdBy;
json[r'messages'] = this.messages;
if (this.hasEnquiryPendingTermsAcceptance != null) {
json[r'has_enquiry_pending_terms_acceptance'] = this.hasEnquiryPendingTermsAcceptance;
} else {
json[r'has_enquiry_pending_terms_acceptance'] = null;
}
return json;
}