create static method
ChatEventLinkedChatChanged
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "chatEventLinkedChatChanged",
- String special_return_type = "chatEventAction",
- num? old_linked_chat_id,
- num? new_linked_chat_id,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static ChatEventLinkedChatChanged create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "chatEventLinkedChatChanged",
String special_return_type = "chatEventAction",
num? old_linked_chat_id,
num? new_linked_chat_id,
}) {
// ChatEventLinkedChatChanged chatEventLinkedChatChanged = ChatEventLinkedChatChanged({
final Map chatEventLinkedChatChanged_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"old_linked_chat_id": old_linked_chat_id,
"new_linked_chat_id": new_linked_chat_id,
};
chatEventLinkedChatChanged_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (chatEventLinkedChatChanged_data_create_json.containsKey(key) == false) {
chatEventLinkedChatChanged_data_create_json[key] = value;
}
});
}
return ChatEventLinkedChatChanged(chatEventLinkedChatChanged_data_create_json);
}