toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data["id"] = this.id;
data["firebaseId"] = this.firebaseId;
data["token"] = this.token;
data["uniqueId"] = this.uniqueId;
data["firstName"] = this.firstName;
data["lastName"] = this.lastName;
data["displayName"] = this.displayName;
data["website"] = this.website;
data["categorie"] = this.categorie;
data["profession"] = this.profession;
data["rating"] = this.rating;
data["email"] = this.email;
data["phone1"] = this.phone1;
data["phone2"] = this.phone2;
data["street1"] = this.street1;
data["street2"] = this.street2;
data["companyName"] = this.companyName;
data["zip"] = this.zip;
data["city"] = this.city;
data["state"] = this.state;
data["country"] = this.country;
data["countryCode"] = this.countryCode;
data["lat"] = this.lat;
data["lng"] = this.lng;
data["colorCode"] = this.colorCode;
data["thumbnail"] = this.thumbnail;
data["createdAt"] = this.createdAt;
data["signedAt"] = this.signedAt;
data["google"] = this.google;
data["facebook"] = this.facebook;
data["twitter"] = this.twitter;
data["pinterest"] = this.pinterest;
data["instagram"] = this.instagram;
data["linkedin"] = this.linkedin;
data["aboutMe"] = this.aboutMe;
data["google2FaFlg"] = this.google2FaFlg;
data["google2FaSecretKey"] = this.google2FaSecretKey;
data["usedStorageSpace"] = this.usedStorageSpace;
data["gender"] = this.gender;
data["ageRange"] = this.ageRange;
data["phoneCode"] = this.phoneCode;
data["subscriptionPlanId"] = this.subscriptionPlanId;
data["allowChat"] = this.allowChat;
data["planName"] = this.planName;
data["mainLanguage"] = this.mainLanguage;
data["interfaceLanguageCode"] = this.interfaceLanguageCode;
if (this.secondaryLanguages != null) {
data["secondaryLanguages"] = this.secondaryLanguages;
}
if (this.billingInfos != null) {
data["billingInfos"] = this.billingInfos!.map((e) => e.toJson());
}
data["reliability"] = this.reliability;
data["events"] = this.events;
data["organisation"] = this.organisation;
data["roleName"] = this.roleName;
if (this.permissions != null) {
data["permissions"] = this.permissions;
}
data["smsAllowed"] = this.smsAllowed;
data["freeSms"] = this.freeSms;
data["currency"] = this.currency;
data["billingName"] = this.billingName;
data["vatNumber"] = this.vatNumber;
data["companyNumber"] = this.companyNumber;
data["organisationThumbnail"] = this.organisationThumbnail;
data["timeBeforeStartTracking"] = this.timeBeforeStartTracking;
data["distanceBeforeStartTracking"] = this.distanceBeforeStartTracking;
data["registerFrom"] = this.registerFrom;
data["isHomelidoAgent"] = this.isHomelidoAgent;
data["industryId"] = this.industryId;
data["allowGeolocation"] = this.allowGeolocation;
data["dateFormat"] = this.dateFormat;
data["timeFormat"] = this.timeFormat;
if (this.mainSubcatInfo != null) {
data["mainSubcatInfo"] = this.mainSubcatInfo?.toJson();
}
data["industryName"] = this.industryName;
data["kisblePublicThumbnailUrl"] = this.kisblePublicThumbnailUrl;
data["internalArckipelNote"] = this.internalArckipelNote;
return data;
}