create static method

InputMessageSticker create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "inputMessageSticker",
  3. String special_return_type = "inputMessageContent",
  4. InputFile? sticker,
  5. InputThumbnail? thumbnail,
  6. num? width,
  7. num? height,
  8. String? emoji,
})
override

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

Implementation

static InputMessageSticker create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "inputMessageSticker",
  String special_return_type = "inputMessageContent",
  InputFile? sticker,
  InputThumbnail? thumbnail,
  num? width,
  num? height,
  String? emoji,
}) {
  // InputMessageSticker inputMessageSticker = InputMessageSticker({
  final Map inputMessageSticker_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "sticker": (sticker != null) ? sticker.toJson() : null,
    "thumbnail": (thumbnail != null) ? thumbnail.toJson() : null,
    "width": width,
    "height": height,
    "emoji": emoji,
  };

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

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