create static method
InputMessageSticker
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "inputMessageSticker",
- String special_return_type = "inputMessageContent",
- InputFile? sticker,
- InputThumbnail? thumbnail,
- num? width,
- num? height,
- String? emoji,
override
Generate By General Universe Script Dont edit by hand or anything manual
Implementation
static InputMessageSticker create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "inputMessageSticker",
String special_return_type = "inputMessageContent",
InputFile? sticker,
InputThumbnail? thumbnail,
num? width,
num? height,
String? emoji,
}) {
// InputMessageSticker inputMessageSticker = InputMessageSticker({
final Map inputMessageSticker_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"sticker": (sticker != null) ? sticker.toJson() : null,
"thumbnail": (thumbnail != null) ? thumbnail.toJson() : null,
"width": width,
"height": height,
"emoji": emoji,
};
inputMessageSticker_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (inputMessageSticker_data_create_json.containsKey(key) == false) {
inputMessageSticker_data_create_json[key] = value;
}
});
}
return InputMessageSticker(inputMessageSticker_data_create_json);
}