create static method
UpdateNewBusinessCallbackQuery
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "updateNewBusinessCallbackQuery",
- String special_return_type = "update",
- num? id,
- num? sender_user_id,
- String? connection_id,
- BusinessMessage? message,
- num? chat_instance,
- CallbackQueryPayload? payload,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static UpdateNewBusinessCallbackQuery create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "updateNewBusinessCallbackQuery",
String special_return_type = "update",
num? id,
num? sender_user_id,
String? connection_id,
BusinessMessage? message,
num? chat_instance,
CallbackQueryPayload? payload,
}) {
// UpdateNewBusinessCallbackQuery updateNewBusinessCallbackQuery = UpdateNewBusinessCallbackQuery({
final Map updateNewBusinessCallbackQuery_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"id": id,
"sender_user_id": sender_user_id,
"connection_id": connection_id,
"message": (message != null) ? message.toJson() : null,
"chat_instance": chat_instance,
"payload": (payload != null) ? payload.toJson() : null,
};
updateNewBusinessCallbackQuery_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (updateNewBusinessCallbackQuery_data_create_json.containsKey(key) == false) {
updateNewBusinessCallbackQuery_data_create_json[key] = value;
}
});
}
return UpdateNewBusinessCallbackQuery(updateNewBusinessCallbackQuery_data_create_json);
}