toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'qualifications'] = this.qualifications;
if (this.video != null) {
json[r'video'] = this.video;
} else {
json[r'video'] = null;
}
if (this.videoLink != null) {
json[r'video_link'] = this.videoLink;
} else {
json[r'video_link'] = null;
}
if (this.photo != null) {
json[r'photo'] = this.photo;
} else {
json[r'photo'] = null;
}
if (this.postcode != null) {
json[r'postcode'] = this.postcode;
} else {
json[r'postcode'] = null;
}
if (this.tagline != null) {
json[r'tagline'] = this.tagline;
} else {
json[r'tagline'] = null;
}
json[r'subjects'] = this.subjects;
json[r'availability'] = this.availability;
json[r'time_off'] = this.timeOff;
if (this.dbsNumber != null) {
json[r'dbs_number'] = this.dbsNumber;
} else {
json[r'dbs_number'] = null;
}
if (this.experience != null) {
json[r'experience'] = this.experience;
} else {
json[r'experience'] = null;
}
if (this.experienceYears != null) {
json[r'experience_years'] = this.experienceYears;
} else {
json[r'experience_years'] = null;
}
json[r'personality_type'] = this.personalityType;
if (this.address != null) {
json[r'address'] = this.address;
} else {
json[r'address'] = null;
}
if (this.profilePhotoRejected != null) {
json[r'profile_photo_rejected'] = this.profilePhotoRejected;
} else {
json[r'profile_photo_rejected'] = null;
}
if (this.onlineTutoring != null) {
json[r'online_tutoring'] = this.onlineTutoring;
} else {
json[r'online_tutoring'] = null;
}
if (this.inPersonTutoring != null) {
json[r'in_person_tutoring'] = this.inPersonTutoring;
} else {
json[r'in_person_tutoring'] = null;
}
json[r'tutor_profile_id'] = this.tutorProfileId;
if (this.enableTrial != null) {
json[r'enable_trial'] = this.enableTrial;
} else {
json[r'enable_trial'] = null;
}
if (this.enableInstant != null) {
json[r'enable_instant'] = this.enableInstant;
} else {
json[r'enable_instant'] = null;
}
if (this.liveSessionType != null) {
json[r'live_session_type'] = this.liveSessionType;
} else {
json[r'live_session_type'] = null;
}
if (this.school != null) {
json[r'school'] = this.school;
} else {
json[r'school'] = null;
}
json[r'school_name'] = this.schoolName;
if (this.statementConfirmation != null) {
json[r'statement_confirmation'] = this.statementConfirmation;
} else {
json[r'statement_confirmation'] = null;
}
if (this.handbook != null) {
json[r'handbook'] = this.handbook;
} else {
json[r'handbook'] = null;
}
if (this.tutorIDImage != null) {
json[r'tutor_ID_image'] = this.tutorIDImage;
} else {
json[r'tutor_ID_image'] = null;
}
if (this.tutorCv != null) {
json[r'tutor_cv'] = this.tutorCv;
} else {
json[r'tutor_cv'] = null;
}
if (this.country != null) {
json[r'country'] = this.country;
} else {
json[r'country'] = null;
}
if (this.id != null) {
json[r'id'] = this.id;
} else {
json[r'id'] = null;
}
json[r'user'] = this.user;
if (this.hasBackendPhoto != null) {
json[r'has_backend_photo'] = this.hasBackendPhoto;
} else {
json[r'has_backend_photo'] = null;
}
if (this.isSuperTutor != null) {
json[r'is_super_tutor'] = this.isSuperTutor;
} else {
json[r'is_super_tutor'] = null;
}
if (this.hasStripeAccount != null) {
json[r'has_stripe_account'] = this.hasStripeAccount;
} else {
json[r'has_stripe_account'] = null;
}
if (this.isDbsChecked != null) {
json[r'is_dbs_checked'] = this.isDbsChecked;
} else {
json[r'is_dbs_checked'] = null;
}
json[r'incomplete_sections'] = this.incompleteSections;
if (this.isLive != null) {
json[r'is_live'] = this.isLive;
} else {
json[r'is_live'] = null;
}
if (this.hasWhiteboardAccess != null) {
json[r'has_whiteboard_access'] = this.hasWhiteboardAccess;
} else {
json[r'has_whiteboard_access'] = null;
}
if (this.isHidden != null) {
json[r'is_hidden'] = this.isHidden;
} else {
json[r'is_hidden'] = null;
}
json[r'coverage'] = this.coverage;
json[r'completed_sections'] = this.completedSections;
if (this.metInPerson != null) {
json[r'met_in_person'] = this.metInPerson;
} else {
json[r'met_in_person'] = null;
}
json[r'num_reviews'] = this.numReviews;
json[r'response_time_display'] = this.responseTimeDisplay;
if (this.profileSubmitted != null) {
json[r'profile_submitted'] = this.profileSubmitted;
} else {
json[r'profile_submitted'] = null;
}
json[r'user_timezone'] = this.userTimezone;
return json;
}