ProfileDetails.fromJson constructor

ProfileDetails.fromJson(
  1. Map<String, dynamic> json
)

Creates a ProfileDetails instance from a JSON map.

Implementation

factory ProfileDetails.fromJson(Map<String, dynamic> json) => ProfileDetails(
      contactType: json["contactType"],
      email: json["email"],
      groupCreatedTime: json["groupCreatedTime"],
      image: json["image"],
      imagePrivacyFlag: json["imagePrivacyFlag"],
      isAdminBlocked: json["isAdminBlocked"],
      isBlocked: json["isBlocked"],
      isBlockedMe: json["isBlockedMe"],
      isGroupAdmin: json["isGroupAdmin"],
      isGroupInOfflineMode: json["isGroupInOfflineMode"],
      isGroupProfile: json["isGroupProfile"],
      isItSavedContact: json["isItSavedContact"],
      isMuted: json["isMuted"],
      isSelected: json["isSelected"],
      jid: json["jid"],
      lastSeenPrivacyFlag: json["lastSeenPrivacyFlag"],
      mobileNUmberPrivacyFlag: json["mobileNUmberPrivacyFlag"],
      mobileNumber: json["mobileNumber"],
      name: json["name"],
      nickName: json["nickName"],
      status: json["status"],
      thumbImage: json["thumbImage"],
    );