create static method
QuickReplyMessage
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "quickReplyMessage",
- String special_return_type = "quickReplyMessage",
- num? id,
- MessageSendingState? sending_state,
- bool? can_be_edited,
- num? reply_to_message_id,
- num? via_bot_user_id,
- num? media_album_id,
- MessageContent? content,
- ReplyMarkup? reply_markup,
override
Generate By General Universe Script Dont edit by hand or anything manual
Implementation
static QuickReplyMessage create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "quickReplyMessage",
String special_return_type = "quickReplyMessage",
num? id,
MessageSendingState? sending_state,
bool? can_be_edited,
num? reply_to_message_id,
num? via_bot_user_id,
num? media_album_id,
MessageContent? content,
ReplyMarkup? reply_markup,
}) {
// QuickReplyMessage quickReplyMessage = QuickReplyMessage({
final Map quickReplyMessage_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"id": id,
"sending_state": (sending_state != null) ? sending_state.toJson() : null,
"can_be_edited": can_be_edited,
"reply_to_message_id": reply_to_message_id,
"via_bot_user_id": via_bot_user_id,
"media_album_id": media_album_id,
"content": (content != null) ? content.toJson() : null,
"reply_markup": (reply_markup != null) ? reply_markup.toJson() : null,
};
quickReplyMessage_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (quickReplyMessage_data_create_json.containsKey(key) == false) {
quickReplyMessage_data_create_json[key] = value;
}
});
}
return QuickReplyMessage(quickReplyMessage_data_create_json);
}