toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = this.id;
json[r'photo'] = this.photo;
json[r'tutor_profile_id'] = this.tutorProfileId;
if (this.experienceYears != null) {
json[r'experience_years'] = this.experienceYears;
} else {
json[r'experience_years'] = null;
}
if (this.totalBookings != null) {
json[r'total_bookings'] = this.totalBookings;
} else {
json[r'total_bookings'] = null;
}
json[r'num_reviews'] = this.numReviews;
json[r'name'] = this.name;
if (this.experience != null) {
json[r'experience'] = this.experience;
} else {
json[r'experience'] = null;
}
json[r'photo_card'] = this.photoCard;
json[r'photo_thumbnail'] = this.photoThumbnail;
if (this.hasSkype != null) {
json[r'has_skype'] = this.hasSkype;
} else {
json[r'has_skype'] = null;
}
if (this.responseTimeDisplay != null) {
json[r'response_time_display'] = this.responseTimeDisplay;
} else {
json[r'response_time_display'] = null;
}
json[r'rating'] = this.rating;
if (this.isFeatured != null) {
json[r'is_featured'] = this.isFeatured;
} else {
json[r'is_featured'] = 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.hasWhiteboardAccess != null) {
json[r'has_whiteboard_access'] = this.hasWhiteboardAccess;
} else {
json[r'has_whiteboard_access'] = null;
}
if (this.tagline != null) {
json[r'tagline'] = this.tagline;
} else {
json[r'tagline'] = null;
}
json[r'qualifications'] = this.qualifications;
if (this.numProfileViews != null) {
json[r'num_profile_views'] = this.numProfileViews;
} else {
json[r'num_profile_views'] = 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.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;
}
if (this.selectedSubject != null) {
json[r'selected_subject'] = this.selectedSubject;
} else {
json[r'selected_subject'] = null;
}
json[r'online_last_month'] = this.onlineLastMonth;
if (this.lastLogin != null) {
json[r'last_login'] = this.lastLogin!.toUtc().toIso8601String();
} else {
json[r'last_login'] = null;
}
if (this.school != null) {
json[r'school'] = this.school;
} else {
json[r'school'] = null;
}
if (this.isDbsChecked != null) {
json[r'is_dbs_checked'] = this.isDbsChecked;
} else {
json[r'is_dbs_checked'] = null;
}
if (this.isQualifiedTutor != null) {
json[r'is_qualified_tutor'] = this.isQualifiedTutor;
} else {
json[r'is_qualified_tutor'] = null;
}
json[r'school_name'] = this.schoolName;
json[r'user_timezone'] = this.userTimezone;
if (this.subjects != null) {
json[r'subjects'] = this.subjects;
} else {
json[r'subjects'] = null;
}
return json;
}