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.appliedAt != null) {
json[r'applied_at'] = this.appliedAt!.toUtc().toIso8601String();
} else {
json[r'applied_at'] = null;
}
json[r'job_post'] = this.jobPost;
json[r'is_profile_complete'] = this.isProfileComplete;
if (this.tutor != null) {
json[r'tutor'] = this.tutor;
} else {
json[r'tutor'] = null;
}
if (this.rejectedAt != null) {
json[r'rejected_at'] = this.rejectedAt!.toUtc().toIso8601String();
} else {
json[r'rejected_at'] = null;
}
if (this.isActive != null) {
json[r'is_active'] = this.isActive;
} else {
json[r'is_active'] = null;
}
if (this.tutorMessage != null) {
json[r'tutor_message'] = this.tutorMessage;
} else {
json[r'tutor_message'] = null;
}
return json;
}