create static method
UpdateChatAction
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "updateChatAction",
- String special_return_type = "update",
- num? chat_id,
- num? message_thread_id,
- MessageSender? sender_id,
- ChatAction? action,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static UpdateChatAction create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "updateChatAction",
String special_return_type = "update",
num? chat_id,
num? message_thread_id,
MessageSender? sender_id,
ChatAction? action,
}) {
// UpdateChatAction updateChatAction = UpdateChatAction({
final Map updateChatAction_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"chat_id": chat_id,
"message_thread_id": message_thread_id,
"sender_id": (sender_id != null) ? sender_id.toJson() : null,
"action": (action != null) ? action.toJson() : null,
};
updateChatAction_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (updateChatAction_data_create_json.containsKey(key) == false) {
updateChatAction_data_create_json[key] = value;
}
});
}
return UpdateChatAction(updateChatAction_data_create_json);
}