GroupNotification.fromJson constructor

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

Implementation

GroupNotification.fromJson(Map<String, dynamic> json) {
  group = json['group'] != null ? GroupInfo.fromJson(json['group']) : null;
  opUser = json['opUser'] != null
      ? GroupMembersInfo.fromJson(json['opUser'])
      : null;
  groupOwnerUser = json['groupOwnerUser'] != null
      ? GroupMembersInfo.fromJson(json['groupOwnerUser'])
      : null;
  if (json['memberList'] != null) {
    memberList = <GroupMembersInfo>[];
    json['memberList'].forEach((v) {
      memberList!.add(GroupMembersInfo.fromJson(v));
    });
  }
}