MemberProfileDetails.fromJson constructor
MemberProfileDetails.fromJson(
- Map<String, dynamic> json
)
Implementation
factory MemberProfileDetails.fromJson(Map<String, dynamic> json) =>
MemberProfileDetails(
contactType: json["contactType"] == "unknown"
? "unknown_contact"
: json["contactType"] == "live"
? "live_contact"
: json["contactType"] == "local"
? "local_contact"
: json["contactType"] == "deleted"
? "deleted_contact"
: json["contactType"],
email: json["email"],
groupCreatedTime: json["groupCreatedTime"].toString(),
image: json["image"],
imagePrivacyFlag: json["imagePrivacyFlag"].toString(),
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"].toString(),
mobileNUmberPrivacyFlag: json["mobileNUmberPrivacyFlag"].toString(),
mobileNumber: json["mobileNumber"],
name: json["name"],
nickName: json["nickName"],
status: json["status"],
thumbImage: json["thumbImage"],
);