toJson method
Implementation
Map<String, dynamic> toJson() => {
"groupPermission":
List<dynamic>.from(groupPermission!.map((x) => x.toJson())),
"readCount": List<dynamic>.from(readCount!.map((x) => x.toJson())),
"modifiedBy": modifiedBy,
"name": name,
"createAt": createAt!.toJson(),
"modifiedAt": modifiedAt!.toJson(),
"groupId": groupId,
"isGroup": isGroup,
"isDeactivateUser": isDeactivateUser,
"groupImage": groupImage,
"users": List<dynamic>.from(users!.map((x) => x.toJson())),
"online": List<dynamic>.from(online!.map((x) => x)),
"pinGroupForAll": pinGroupForAll,
"recentMessage": recentMessage!.toJson(),
"createdBy": createdBy,
"members": List<dynamic>.from(members!.map((x) => x)),
"secretKey": secretKey,
"joinGroup": List<dynamic>.from(joinGroup!.map((x) => x)),
"pinnedGroup": List<dynamic>.from(pinnedGroup!.map((x) => x)),
"viewBy": List<dynamic>.from(viewBy!.map((x) => x)),
"typing": List<dynamic>.from(typing!.map((x) => x)),
"blockUsers": List<dynamic>.from(blockUsers!.map((x) => x)),
"lastUpdatedAt": lastUpdatedAt!.toJson(),
};