toJson method
Implementation
Map toJson() {
Map data = Map();
data.putIfNotNull("groupId", groupId);
data.putIfNotNull("name", name);
data.putIfNotNull("desc", description);
data.putIfNotNull("owner", owner);
data.putIfNotNull("announcement", announcement);
data.putIfNotNull("memberCount", memberCount);
data.putIfNotNull("memberList", memberList);
data.putIfNotNull("adminList", adminList);
data.putIfNotNull("blockList", blockList);
data.putIfNotNull("muteList", muteList);
data.putIfNotNull("messageBlocked", messageBlocked);
data.putIfNotNull("isDisabled", isDisabled);
data.putIfNotNull("isAllMemberMuted", isAllMemberMuted);
data.putIfNotNull("options", _options?.toJson());
data.putIfNotNull("permissionType", permissionTypeToInt(permissionType));
return data;
}