toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.address != null) data['address'] = this.address;
if (this.apiToken != null) data['api_token'] = this.apiToken;
if (this.cityId != null) data['city_id'] = this.cityId;
if (this.password != null) data['password'] = this.password;
if (this.contactNumber != null) data['contact_number'] = this.contactNumber;
if (this.countryId != null) data['country_id'] = this.countryId;
if (this.createdAt != null) data['created_at'] = this.createdAt;
if (this.displayName != null) data['display_name'] = this.displayName;
if (this.email != null) data['email'] = this.email;
if (this.emailVerifiedAt != null) data['email_verified_at'] = this.emailVerifiedAt;
if (this.firstName != null) data['first_name'] = this.firstName;
if (this.id != null) data['id'] = this.id;
if (this.socialImage != null) data['social_image'] = this.socialImage;
if (this.isFeatured != null) data['is_featured'] = this.isFeatured;
if (this.lastName != null) data['last_name'] = this.lastName;
if (this.providerId != null) data['provider_id'] = this.providerId;
if (this.providerTypeId != null) data['providertype_id'] = this.providerTypeId;
if (this.stateId != null) data['state_id'] = this.stateId;
if (this.status != null) data['status'] = this.status;
if (this.updatedAt != null) data['updated_at'] = this.updatedAt;
if (this.userType != null) data['user_type'] = this.userType;
if (this.username != null) data['username'] = this.username;
if (this.profileImage != null) data['profile_image'] = this.profileImage;
if (this.uid != null) data['uid'] = this.uid;
if (this.isOnline != null) data['isOnline'] = this.isOnline;
if (this.description != null) data['description'] = this.description;
if (this.knownLanguages != null) data['known_languages'] = this.knownLanguages;
if (this.whyChooseMe != null) data['why_choose_me'] = this.whyChooseMe;
if (this.skills != null) data['skills'] = this.skills;
if (this.providerType != null) data['providertype'] = this.providerType;
if (this.cityName != null) data['city_name'] = this.cityName;
if (this.timeZone != null) data['time_zone'] = this.timeZone;
if (this.loginType != null) data['login_type'] = this.loginType;
if (this.serviceAddressId != null) data['service_address_id'] = this.serviceAddressId;
if (this.lastNotificationSeen != null) data['last_notification_seen'] = this.lastNotificationSeen;
if (this.providersServiceRating != null) data['providers_service_rating'] = this.providersServiceRating;
if (this.handymanRating != null) data['handyman_rating'] = this.handymanRating;
if (this.isVerifyProvider != null) data['is_verify_provider'] = this.isVerifyProvider;
if (this.isUserExist != null) data['is_user_exist'] = this.isUserExist;
if (this.designation != null) data['designation'] = this.designation;
if (this.verificationId != null) data['verificationId'] = this.verificationId;
if (this.otpCode != null) data['otpCode'] = this.otpCode;
if (this.isFavourite != null) data['is_favourite'] = this.isFavourite;
if (this.totalBooking != null) data['total_services_booked'] = this.totalBooking;
if (this.emailVerified != null) data['is_email_verified'] = this.emailVerified;
if (this.handymanReview != null) {
data['handyman_review'] = this.handymanReview!.toJson();
}
if (this.userRole != null) {
data['user_role'] = this.userRole;
}
return data;
}