create static method

MessageVideoNote create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "messageVideoNote",
  3. String special_return_type = "messageContent",
  4. VideoNote? video_note,
  5. bool? is_viewed,
  6. bool? is_secret,
})
override

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

Implementation

static MessageVideoNote create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "messageVideoNote",
  String special_return_type = "messageContent",
  VideoNote? video_note,
  bool? is_viewed,
  bool? is_secret,
}) {
  // MessageVideoNote messageVideoNote = MessageVideoNote({
  final Map messageVideoNote_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "video_note": (video_note != null) ? video_note.toJson() : null,
    "is_viewed": is_viewed,
    "is_secret": is_secret,
  };

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

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