create static method
UploadStickerFile
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "uploadStickerFile",
- String special_return_type = "file",
- bool? is_tdlib_method,
- num? user_id,
- StickerFormat? sticker_format,
- InputFile? sticker,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static UploadStickerFile create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "uploadStickerFile",
String special_return_type = "file",
bool? is_tdlib_method,
num? user_id,
StickerFormat? sticker_format,
InputFile? sticker,
}) {
// UploadStickerFile uploadStickerFile = UploadStickerFile({
final Map uploadStickerFile_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"is_tdlib_method": is_tdlib_method,
"user_id": user_id,
"sticker_format": (sticker_format != null) ? sticker_format.toJson() : null,
"sticker": (sticker != null) ? sticker.toJson() : null,
};
uploadStickerFile_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (uploadStickerFile_data_create_json.containsKey(key) == false) {
uploadStickerFile_data_create_json[key] = value;
}
});
}
return UploadStickerFile(uploadStickerFile_data_create_json);
}