create static method
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,
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);
}