toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['groupID'] = groupID;
  data['type'] = type;
  data['opMember'] = opMember.toJson();
  if (memberList != null) {
    data['memberList'] = memberList?.map((v) => v?.toJson()).toList();
  }
  if (groupChangeInfoList != null) {
    data['groupChangeInfoList'] =
        groupChangeInfoList?.map((v) => v?.toJson()).toList();
  }
  if (memberChangeInfoList != null) {
    data['memberChangeInfoList'] =
        memberChangeInfoList?.map((v) => v?.toJson()).toList();
  }
  data['memberCount'] = memberCount;
  return data;
}