create static method
StickerSetInfo
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "stickerSetInfo",
- String special_return_type = "stickerSetInfo",
- 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,
- num? size,
- List<
Sticker> ? covers,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static StickerSetInfo create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "stickerSetInfo",
String special_return_type = "stickerSetInfo",
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,
num? size,
List<Sticker>? covers,
}) {
// StickerSetInfo stickerSetInfo = StickerSetInfo({
final Map stickerSetInfo_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,
"size": size,
"covers": (covers != null) ? covers.toJson() : null,
};
stickerSetInfo_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (stickerSetInfo_data_create_json.containsKey(key) == false) {
stickerSetInfo_data_create_json[key] = value;
}
});
}
return StickerSetInfo(stickerSetInfo_data_create_json);
}