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;
}
json[r'user'] = this.user;
if (this.tutorProfileId != null) {
json[r'tutor_profile_id'] = this.tutorProfileId;
} else {
json[r'tutor_profile_id'] = 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;
}
if (this.address != null) {
json[r'address'] = this.address;
} else {
json[r'address'] = null;
}
if (this.dbsNumber != null) {
json[r'dbs_number'] = this.dbsNumber;
} else {
json[r'dbs_number'] = null;
}
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.inPersonTutoring != null) {
json[r'in_person_tutoring'] = this.inPersonTutoring;
} else {
json[r'in_person_tutoring'] = null;
}
if (this.onlineTutoring != null) {
json[r'online_tutoring'] = this.onlineTutoring;
} else {
json[r'online_tutoring'] = null;
}
if (this.personalityType != null) {
json[r'personality_type'] = this.personalityType;
} else {
json[r'personality_type'] = null;
}
if (this.profilePhotoRejected != null) {
json[r'profile_photo_rejected'] = this.profilePhotoRejected;
} else {
json[r'profile_photo_rejected'] = null;
}
json[r'num_reviews'] = this.numReviews;
json[r'subjects'] = this.subjects;
if (this.selectedSubject != null) {
json[r'selected_subject'] = this.selectedSubject;
} else {
json[r'selected_subject'] = null;
}
json[r'photo'] = this.photo;
if (this.isDbsChecked != null) {
json[r'is_dbs_checked'] = this.isDbsChecked;
} else {
json[r'is_dbs_checked'] = null;
}
if (this.isDbsCompleted != null) {
json[r'is_dbs_completed'] = this.isDbsCompleted;
} else {
json[r'is_dbs_completed'] = null;
}
json[r'qualifications'] = this.qualifications;
if (this.hasSkype != null) {
json[r'has_skype'] = this.hasSkype;
} else {
json[r'has_skype'] = null;
}
if (this.metInPerson != null) {
json[r'met_in_person'] = this.metInPerson;
} else {
json[r'met_in_person'] = null;
}
json[r'coverage_names'] = this.coverageNames;
json[r'rating'] = this.rating;
if (this.responseTimeDisplay != null) {
json[r'response_time_display'] = this.responseTimeDisplay;
} else {
json[r'response_time_display'] = null;
}
if (this.postcode != null) {
json[r'postcode'] = this.postcode;
} else {
json[r'postcode'] = null;
}
if (this.slug != null) {
json[r'slug'] = this.slug;
} else {
json[r'slug'] = null;
}
if (this.isSuperTutor != null) {
json[r'is_super_tutor'] = this.isSuperTutor;
} else {
json[r'is_super_tutor'] = null;
}
if (this.numFiveStarReviews != null) {
json[r'num_five_star_reviews'] = this.numFiveStarReviews;
} else {
json[r'num_five_star_reviews'] = null;
}
if (this.numExcellentReviews != null) {
json[r'num_excellent_reviews'] = this.numExcellentReviews;
} else {
json[r'num_excellent_reviews'] = null;
}
if (this.numProfileViews != null) {
json[r'num_profile_views'] = this.numProfileViews;
} else {
json[r'num_profile_views'] = null;
}
if (this.tagline != null) {
json[r'tagline'] = this.tagline;
} else {
json[r'tagline'] = null;
}
json[r'badge_header'] = this.badgeHeader;
if (this.hasNumberOfViewsBadge != null) {
json[r'has_number_of_views_badge'] = this.hasNumberOfViewsBadge;
} else {
json[r'has_number_of_views_badge'] = null;
}
if (this.isLive != null) {
json[r'is_live'] = this.isLive;
} else {
json[r'is_live'] = null;
}
json[r'completed_sections'] = this.completedSections;
json[r'incomplete_sections'] = this.incompleteSections;
if (this.profileSubmitted != null) {
json[r'profile_submitted'] = this.profileSubmitted;
} else {
json[r'profile_submitted'] = null;
}
if (this.isFeatured != null) {
json[r'is_featured'] = this.isFeatured;
} else {
json[r'is_featured'] = null;
}
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.school != null) {
json[r'school'] = this.school;
} else {
json[r'school'] = null;
}
json[r'school_name'] = this.schoolName;
if (this.country != null) {
json[r'country'] = this.country;
} else {
json[r'country'] = null;
}
if (this.hasStripeAccount != null) {
json[r'has_stripe_account'] = this.hasStripeAccount;
} else {
json[r'has_stripe_account'] = null;
}
json[r'availability'] = this.availability;
json[r'time_off'] = this.timeOff;
json[r'user_timezone'] = this.userTimezone;
if (this.isTrialed != null) {
json[r'is_trialed'] = this.isTrialed;
} else {
json[r'is_trialed'] = null;
}
return json;
}