create static method
PushMessageContentVideo
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "pushMessageContentVideo",
- String special_return_type = "pushMessageContent",
- Video? video,
- String? caption,
- bool? is_secret,
- bool? is_pinned,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static PushMessageContentVideo create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "pushMessageContentVideo",
String special_return_type = "pushMessageContent",
Video? video,
String? caption,
bool? is_secret,
bool? is_pinned,
}) {
// PushMessageContentVideo pushMessageContentVideo = PushMessageContentVideo({
final Map pushMessageContentVideo_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"video": (video != null) ? video.toJson() : null,
"caption": caption,
"is_secret": is_secret,
"is_pinned": is_pinned,
};
pushMessageContentVideo_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (pushMessageContentVideo_data_create_json.containsKey(key) == false) {
pushMessageContentVideo_data_create_json[key] = value;
}
});
}
return PushMessageContentVideo(pushMessageContentVideo_data_create_json);
}