toJson method

Map<String, dynamic> toJson()

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.photo != null) {
    json[r'photo'] = this.photo;
  } else {
    json[r'photo'] = null;
  }
    json[r'num_reviews'] = this.numReviews;
    json[r'rating'] = this.rating;
    json[r'name'] = this.name;
  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.isDbsChecked != null) {
    json[r'is_dbs_checked'] = this.isDbsChecked;
  } else {
    json[r'is_dbs_checked'] = null;
  }
  if (this.userId != null) {
    json[r'user_id'] = this.userId;
  } else {
    json[r'user_id'] = null;
  }
    json[r'is_online'] = this.isOnline;
  return json;
}