create static method
UpdateUnreadChatCount
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "updateUnreadChatCount",
- String special_return_type = "update",
- ChatList? chat_list,
- num? total_count,
- num? unread_count,
- num? unread_unmuted_count,
- num? marked_as_unread_count,
- num? marked_as_unread_unmuted_count,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static UpdateUnreadChatCount create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "updateUnreadChatCount",
String special_return_type = "update",
ChatList? chat_list,
num? total_count,
num? unread_count,
num? unread_unmuted_count,
num? marked_as_unread_count,
num? marked_as_unread_unmuted_count,
}) {
// UpdateUnreadChatCount updateUnreadChatCount = UpdateUnreadChatCount({
final Map updateUnreadChatCount_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"chat_list": (chat_list != null) ? chat_list.toJson() : null,
"total_count": total_count,
"unread_count": unread_count,
"unread_unmuted_count": unread_unmuted_count,
"marked_as_unread_count": marked_as_unread_count,
"marked_as_unread_unmuted_count": marked_as_unread_unmuted_count,
};
updateUnreadChatCount_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (updateUnreadChatCount_data_create_json.containsKey(key) == false) {
updateUnreadChatCount_data_create_json[key] = value;
}
});
}
return UpdateUnreadChatCount(updateUnreadChatCount_data_create_json);
}