create static method
QuickReplyShortcut
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "quickReplyShortcut",
- String special_return_type = "quickReplyShortcut",
- num? id,
- String? name,
- QuickReplyMessage? first_message,
- num? message_count,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static QuickReplyShortcut create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "quickReplyShortcut",
String special_return_type = "quickReplyShortcut",
num? id,
String? name,
QuickReplyMessage? first_message,
num? message_count,
}) {
// QuickReplyShortcut quickReplyShortcut = QuickReplyShortcut({
final Map quickReplyShortcut_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"id": id,
"name": name,
"first_message": (first_message != null) ? first_message.toJson() : null,
"message_count": message_count,
};
quickReplyShortcut_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (quickReplyShortcut_data_create_json.containsKey(key) == false) {
quickReplyShortcut_data_create_json[key] = value;
}
});
}
return QuickReplyShortcut(quickReplyShortcut_data_create_json);
}