toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'activities': this.activities,
      'address': this.address,
      'age': this.age,
      'bio': this.bio,
      'birthDay': this.birthDay,
      'birthMonth': this.birthMonth,
      'birthYear': this.birthYear,
      if (this.certifications.isNotEmpty)
        'configurations': this.certifications.map((j) => j.toJson()).toList(),
      if (this.education.isNotEmpty)
        'education': this.education.map((j) => j.toJson()).toList(),
      'educationLevel': this.educationLevel,
      'city': this.city,
      'country': this.country,
      'email': this.email,
      if (this.favorites.isNotEmpty)
        'favorites': this.favorites.map((j) => j.toJson()).toList(),
      'firstName': this.firstName,
      'lastName': this.lastName,
      'followersCounts': this.followersCounts,
      'followingCount': this.followingCount,
      'gender': this.gender,
      'hometown': this.hometown,
      'honors': this.honors,
      'industry': this.industry,
      'interestedIn': this.interestedIn,
      'interests': this.interests,
      'languages': this.languages,
      if (this.lastLoginLocation != null)
        'lastLoginLocation': this.lastLoginLocation!.toJson(),
      if (this.likes.isNotEmpty)
        'likes': this.likes.map((j) => j.toJson()).toList(),
      'locale': this.locale,
      'name': this.name,
      'nickname': this.nickname,
      if (this.oidcData != null) 'oidcData': this.oidcData!.toJson(),
      if (this.patents.isNotEmpty)
        'patents': this.patents.map((j) => j.toJson()).toList(),
      if (this.phones.isNotEmpty)
        'phones': this.phones.map((j) => j.toJson()).toList(),
      'photoURL': this.photoURL,
      'thumbnailURL': this.thumbnailURL,
      'profileURL': this.profileURL,
      'politicalView': this.politicalView,
      'professionalHeadline': this.professionalHeadline,
      'proxyEmail': this.proxyEmail,
      if (this.publications.isNotEmpty)
        'publications': this.publications.map((j) => j.toJson()).toList(),
      'relationshipStatus': this.relationshipStatus,
      'religion': this.religion,
      if (this.skills.isNotEmpty)
        'skills': this.skills.map((j) => j.toJson()).toList(),
      'specialities': this.specialities,
      'state': this.state,
      'timezone': this.timezone,
      'username': this.username,
      'verified': this.verified,
      if (this.work.isNotEmpty)
        'work': this.work.map((j) => j.toJson()).toList(),
      'zip': this.zip,
    };