create static method

StickerSet create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "stickerSet",
  3. String special_return_type = "stickerSet",
  4. num? id,
  5. String? title,
  6. String? name,
  7. Thumbnail? thumbnail,
  8. Outline? thumbnail_outline,
  9. bool? is_owned,
  10. bool? is_installed,
  11. bool? is_archived,
  12. bool? is_official,
  13. StickerType? sticker_type,
  14. bool? needs_repainting,
  15. bool? is_allowed_as_chat_emoji_status,
  16. bool? is_viewed,
  17. List<Sticker>? stickers,
  18. 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);
}