toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'id'] = this.id;
  if (this.photo != null) {
    json[r'photo'] = this.photo;
  } else {
    json[r'photo'] = null;
  }
    json[r'tutor_profile_id'] = this.tutorProfileId;
  if (this.selectedSubject != null) {
    json[r'selected_subject'] = this.selectedSubject;
  } else {
    json[r'selected_subject'] = null;
  }
  if (this.experienceYears != null) {
    json[r'experience_years'] = this.experienceYears;
  } else {
    json[r'experience_years'] = 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;
  }
  if (this.photoCard != null) {
    json[r'photo_card'] = this.photoCard;
  } else {
    json[r'photo_card'] = null;
  }
  if (this.photoThumbnail != null) {
    json[r'photo_thumbnail'] = this.photoThumbnail;
  } else {
    json[r'photo_thumbnail'] = null;
  }
  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;
  }
    json[r'is_super_tutor'] = this.isSuperTutor;
  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;
  }
  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;
  }
    json[r'total_bookings'] = this.totalBookings;
    json[r'is_dbs_checked'] = this.isDbsChecked;
    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;
  }
    json[r'school_name'] = this.schoolName;
  if (this.isTrialed != null) {
    json[r'is_trialed'] = this.isTrialed;
  } else {
    json[r'is_trialed'] = null;
  }
    json[r'user_timezone'] = this.userTimezone;
    json[r'subjects'] = this.subjects;
  if (this.country != null) {
    json[r'country'] = this.country;
  } else {
    json[r'country'] = null;
  }
  return json;
}