V2TimGroupTipsElem.fromJson constructor

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

Implementation

V2TimGroupTipsElem.fromJson(Map<String, dynamic> json) {
  groupID = json['groupID'];
  type = json['type'];
  opMember = V2TimGroupMemberInfo.fromJson(json['opMember']);
  if (json['memberList'] != null) {
    memberList = List.empty(growable: true);
    json['memberList'].forEach((v) {
      memberList!.add(V2TimGroupMemberInfo.fromJson(v));
    });
  }
  if (json['groupChangeInfoList'] != null) {
    groupChangeInfoList = List.empty(growable: true);
    json['groupChangeInfoList'].forEach((v) {
      groupChangeInfoList!.add(V2TimGroupChangeInfo.fromJson(v));
    });
  }
  if (json['memberChangeInfoList'] != null) {
    memberChangeInfoList = List.empty(growable: true);
    json['memberChangeInfoList'].forEach((v) {
      memberChangeInfoList!.add(V2TimGroupMemberChangeInfo.fromJson(v));
    });
  }
  memberCount = json['memberCount'];
}