create static method
ToggleChatViewAsTopics
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "toggleChatViewAsTopics",
- String special_return_type = "ok",
- bool? is_tdlib_method,
- num? chat_id,
- bool? view_as_topics,
override
Generate By General Universe Script Dont edit by hand or anything manual
Implementation
static ToggleChatViewAsTopics create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "toggleChatViewAsTopics",
String special_return_type = "ok",
bool? is_tdlib_method,
num? chat_id,
bool? view_as_topics,
}) {
// ToggleChatViewAsTopics toggleChatViewAsTopics = ToggleChatViewAsTopics({
final Map toggleChatViewAsTopics_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"is_tdlib_method": is_tdlib_method,
"chat_id": chat_id,
"view_as_topics": view_as_topics,
};
toggleChatViewAsTopics_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (toggleChatViewAsTopics_data_create_json.containsKey(key) == false) {
toggleChatViewAsTopics_data_create_json[key] = value;
}
});
}
return ToggleChatViewAsTopics(toggleChatViewAsTopics_data_create_json);
}