ProfileData.fromJson constructor

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

Converts a JSON object into a ProfileData instance.

Implementation

factory ProfileData.fromJson(Map<String, dynamic> json) => ProfileData(
      email: json["email"],
      image: json["image"],
      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"],
      mobileNumber: json["mobileNumber"],
      name: json["name"],
      nickName: json["nickName"],
      status: json["status"],
      thumbImage: json["thumbImage"],
    );