create static method
AnswerWebAppQuery
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "answerWebAppQuery",
- String special_return_type = "sentWebAppMessage",
- bool? is_tdlib_method,
- String? web_app_query_id,
- InputInlineQueryResult? result,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static AnswerWebAppQuery create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "answerWebAppQuery",
String special_return_type = "sentWebAppMessage",
bool? is_tdlib_method,
String? web_app_query_id,
InputInlineQueryResult? result,
}) {
// AnswerWebAppQuery answerWebAppQuery = AnswerWebAppQuery({
final Map answerWebAppQuery_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"is_tdlib_method": is_tdlib_method,
"web_app_query_id": web_app_query_id,
"result": (result != null) ? result.toJson() : null,
};
answerWebAppQuery_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (answerWebAppQuery_data_create_json.containsKey(key) == false) {
answerWebAppQuery_data_create_json[key] = value;
}
});
}
return AnswerWebAppQuery(answerWebAppQuery_data_create_json);
}