GroupTipsMessageNode.fromJson constructor

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

Implementation

GroupTipsMessageNode.fromJson(Map<String, dynamic> json)
    : super(MessageElemTypeEnum.GroupTips) {
  if (json["groupID"] != null) this.groupID = json["groupID"];
  if (json["type"] != null)
    this.type = GroupTipsTypeTool.getByInt(json["type"]);
  if (json["opMember"] != null)
    this.opMember = GroupMemberEntity.fromJson(json["opMember"]);
  if (json["memberList"] != null)
    this.memberList =
        ListUtil.generateOBJList<GroupMemberEntity>(json["memberList"]);
  if (json["groupChangeInfoList"] != null)
    this.groupChangeInfoList =
        ListUtil.generateOBJList<GroupChangedInfoEntity>(
            json["groupChangeInfoList"]);
  if (json["memberChangeInfoList"] != null)
    this.memberChangeInfoList =
        ListUtil.generateOBJList<GroupMemberChangedInfoEntity>(
            json["memberChangeInfoList"]);
  if (json["memberCount"] != null) this.memberCount = json["memberCount"];
}