Profile.fromJson constructor
Profile.fromJson(
- Map<String, dynamic> json
)
Implementation
Profile.fromJson(Map<String, dynamic> json) {
activities = json['activities'];
address = json['address'];
age = json['age'];
bio = json['bio'];
birthDay = json['birthDay'];
birthMonth = json['birthMonth'];
birthYear = json['birthYear'];
certifications = [];
if (json['certifications'] != null) {
json['certifications'].forEach((j) {
certifications.add(Certification.fromJson(j.cast<String, dynamic>()));
});
}
education = [];
if (json['education'] != null) {
json['education'].forEach((j) {
education.add(Education.fromJson(j.cast<String, dynamic>()));
});
}
educationLevel = json['educationLevel'];
city = json['city'];
country = json['country'];
email = json['email'];
favorites = [];
if (json['favorites'] != null) {
json['favorites'].forEach((j) {
favorites.add(Favorites.fromJson(j.cast<String, dynamic>()));
});
}
firstName = json['firstName'];
lastName = json['lastName'];
followersCounts = json['followersCounts'];
followingCount = json['followingCount'];
gender = json['gender'];
hometown = json['hometown'];
honors = json['honors'];
industry = json['industry'];
interestedIn = json['interestedIn'];
interests = json['interests'];
languages = json['languages'];
if (json['lastLoginLocation'] != null) {
lastLoginLocation = Location.fromJson(json['lastLoginLocation']);
}
likes = [];
if (json['likes'] != null) {
json['likes'].forEach((j) {
likes.add(Like.fromJson(j.cast<String, dynamic>()));
});
}
locale = json['locale'];
name = json['name'];
nickname = json['nickname'];
if (json['oidcData'] != null) {
oidcData = OidcData.fromJson(json['oidcData'].cast<String, dynamic>());
}
patents = [];
if (json['patents'] != null) {
json['patents'].forEach((j) {
patents.add(Patent.fromJson(j.cast<String, dynamic>()));
});
}
phones = [];
if (json['phones'] != null) {
json['phones'].forEach((j) {
phones.add(Phone.fromJson(j.cast<String, dynamic>()));
});
}
photoURL = json['photoURL'];
thumbnailURL = json['thumbnailURL'];
profileURL = json['profileURL'];
politicalView = json['politicalView'];
professionalHeadline = json['professionalHeadline'];
proxyEmail = json['proxyEmail'];
publications = [];
if (json['publications'] != null) {
json['publications'].forEach((j) {
publications.add(Publication.fromJson(j.cast<String, dynamic>()));
});
}
relationshipStatus = json['relationshipStatus'];
religion = json['religion'];
skills = [];
if (json['skills'] != null) {
json['skills'].forEach((j) {
skills.add(Skill.fromJson(j.cast<String, dynamic>()));
});
}
specialities = json['specialities'];
state = json['state'];
timezone = json['timezone'];
username = json['username'];
verified = json['verified'];
work = [];
if (json['work'] != null) {
json['work'].forEach((j) {
work.add(Work.fromJson(j.cast<String, dynamic>()));
});
}
zip = json['zip'];
}