create static method

StickerFormat create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "stickerFormat",
  3. bool special_is_json_scheme_class = true,
  4. String special_return_type = "stickerFormat",
  5. StickerFormatWebp? sticker_format_webp,
  6. StickerFormatTgs? sticker_format_tgs,
  7. StickerFormatWebm? sticker_format_webm,
})
override

Generate By General Universe Script Dont edit by hand or anything manual

Implementation

static StickerFormat create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "stickerFormat",
  bool special_is_json_scheme_class = true,
  String special_return_type = "stickerFormat",
  StickerFormatWebp? sticker_format_webp,
  StickerFormatTgs? sticker_format_tgs,
  StickerFormatWebm? sticker_format_webm,
}) {
  // StickerFormat stickerFormat = StickerFormat({
  final Map stickerFormat_data_create_json = {
    "@type": special_type,
    "@is_json_scheme_class": special_is_json_scheme_class,
    "@return_type": special_return_type,
    "sticker_format_webp": (sticker_format_webp != null) ? sticker_format_webp.toJson() : null,
    "sticker_format_tgs": (sticker_format_tgs != null) ? sticker_format_tgs.toJson() : null,
    "sticker_format_webm": (sticker_format_webm != null) ? sticker_format_webm.toJson() : null,
  };

  stickerFormat_data_create_json.removeWhere((key, value) => value == null);

  if (schemeUtilsIsSetDefaultData) {
    defaultData.forEach((key, value) {
      if (stickerFormat_data_create_json.containsKey(key) == false) {
        stickerFormat_data_create_json[key] = value;
      }
    });
  }
  return StickerFormat(stickerFormat_data_create_json);
}