create static method

InputMessageVideoNote create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "inputMessageVideoNote",
  3. String special_return_type = "inputMessageContent",
  4. InputFile? video_note,
  5. InputThumbnail? thumbnail,
  6. num? duration,
  7. num? length,
  8. MessageSelfDestructType? self_destruct_type,
})
override

Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual

Implementation

static InputMessageVideoNote create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "inputMessageVideoNote",
  String special_return_type = "inputMessageContent",
  InputFile? video_note,
  InputThumbnail? thumbnail,
  num? duration,
  num? length,
  MessageSelfDestructType? self_destruct_type,
}) {
  // InputMessageVideoNote inputMessageVideoNote = InputMessageVideoNote({
  final Map inputMessageVideoNote_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "video_note": (video_note != null) ? video_note.toJson() : null,
    "thumbnail": (thumbnail != null) ? thumbnail.toJson() : null,
    "duration": duration,
    "length": length,
    "self_destruct_type": (self_destruct_type != null) ? self_destruct_type.toJson() : null,
  };

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

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