toJson method

Map<String, dynamic> toJson()

Converts an instance of ProfileDetails to a JSON map.

Implementation

Map<String, dynamic> toJson() => {
      "contactType": contactType,
      "email": email,
      "groupCreatedTime": groupCreatedTime,
      "image": image,
      "imagePrivacyFlag": imagePrivacyFlag,
      "isAdminBlocked": isAdminBlocked,
      "isBlocked": isBlocked,
      "isBlockedMe": isBlockedMe,
      "isGroupAdmin": isGroupAdmin,
      "isGroupInOfflineMode": isGroupInOfflineMode,
      "isGroupProfile": isGroupProfile,
      "isItSavedContact": isItSavedContact,
      "isMuted": isMuted,
      "isSelected": isSelected,
      "jid": jid,
      "lastSeenPrivacyFlag": lastSeenPrivacyFlag,
      "mobileNUmberPrivacyFlag": mobileNUmberPrivacyFlag,
      "mobileNumber": mobileNumber,
      "name": name,
      "nickName": nickName,
      "status": status,
      "thumbImage": thumbImage,
    };