create static method
MessageVideo
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "messageVideo",
- String special_return_type = "messageContent",
- Video? video,
- List<
AlternativeVideo> ? alternative_videos, - Photo? cover,
- num? start_timestamp,
- FormattedText? caption,
- bool? show_caption_above_media,
- bool? has_spoiler,
- bool? is_secret,
override
Generate By General Universe Script Dont edit by hand or anything manual
Implementation
static MessageVideo create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "messageVideo",
String special_return_type = "messageContent",
Video? video,
List<AlternativeVideo>? alternative_videos,
Photo? cover,
num? start_timestamp,
FormattedText? caption,
bool? show_caption_above_media,
bool? has_spoiler,
bool? is_secret,
}) {
// MessageVideo messageVideo = MessageVideo({
final Map messageVideo_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"video": (video != null) ? video.toJson() : null,
"alternative_videos": (alternative_videos != null) ? alternative_videos.toJson() : null,
"cover": (cover != null) ? cover.toJson() : null,
"start_timestamp": start_timestamp,
"caption": (caption != null) ? caption.toJson() : null,
"show_caption_above_media": show_caption_above_media,
"has_spoiler": has_spoiler,
"is_secret": is_secret,
};
messageVideo_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (messageVideo_data_create_json.containsKey(key) == false) {
messageVideo_data_create_json[key] = value;
}
});
}
return MessageVideo(messageVideo_data_create_json);
}