create static method
StickerSet
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "stickerSet",
- String special_return_type = "stickerSet",
- num? id,
- String? title,
- String? name,
- Thumbnail? thumbnail,
- Outline? thumbnail_outline,
- bool? is_owned,
- bool? is_installed,
- bool? is_archived,
- bool? is_official,
- StickerType? sticker_type,
- bool? needs_repainting,
- bool? is_allowed_as_chat_emoji_status,
- bool? is_viewed,
- List<
Sticker> ? stickers, - List<
Emojis> ? emojis,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static StickerSet create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "stickerSet",
String special_return_type = "stickerSet",
num? id,
String? title,
String? name,
Thumbnail? thumbnail,
Outline? thumbnail_outline,
bool? is_owned,
bool? is_installed,
bool? is_archived,
bool? is_official,
StickerType? sticker_type,
bool? needs_repainting,
bool? is_allowed_as_chat_emoji_status,
bool? is_viewed,
List<Sticker>? stickers,
List<Emojis>? emojis,
}) {
// StickerSet stickerSet = StickerSet({
final Map stickerSet_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"id": id,
"title": title,
"name": name,
"thumbnail": (thumbnail != null) ? thumbnail.toJson() : null,
"thumbnail_outline": (thumbnail_outline != null) ? thumbnail_outline.toJson() : null,
"is_owned": is_owned,
"is_installed": is_installed,
"is_archived": is_archived,
"is_official": is_official,
"sticker_type": (sticker_type != null) ? sticker_type.toJson() : null,
"needs_repainting": needs_repainting,
"is_allowed_as_chat_emoji_status": is_allowed_as_chat_emoji_status,
"is_viewed": is_viewed,
"stickers": (stickers != null) ? stickers.toJson() : null,
"emojis": (emojis != null) ? emojis.toJson() : null,
};
stickerSet_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (stickerSet_data_create_json.containsKey(key) == false) {
stickerSet_data_create_json[key] = value;
}
});
}
return StickerSet(stickerSet_data_create_json);
}