create static method
Video
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "video",
- String? url,
- String? mimetype,
- String? filesha256,
- String? filelength,
- num? seconds,
- String? mediakey,
- num? height,
- num? width,
- String? fileencsha256,
- String? directpath,
- String? mediakeytimestamp,
- String? jpegthumbnail,
- ContextInfo? contextinfo,
- String? streamingsidecar,
override
Generated
Implementation
static Video create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "video",
String? url,
String? mimetype,
String? filesha256,
String? filelength,
num? seconds,
String? mediakey,
num? height,
num? width,
String? fileencsha256,
String? directpath,
String? mediakeytimestamp,
String? jpegthumbnail,
ContextInfo? contextinfo,
String? streamingsidecar,
}) {
// Video video = Video({
final Map video_data_create_json = {
"@type": special_type,
"url": url,
"mimetype": mimetype,
"fileSha256": filesha256,
"fileLength": filelength,
"seconds": seconds,
"mediaKey": mediakey,
"height": height,
"width": width,
"fileEncSha256": fileencsha256,
"directPath": directpath,
"mediaKeyTimestamp": mediakeytimestamp,
"jpegThumbnail": jpegthumbnail,
"contextInfo": (contextinfo != null) ? contextinfo.toJson() : null,
"streamingSidecar": streamingsidecar,
};
video_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (video_data_create_json.containsKey(key) == false) {
video_data_create_json[key] = value;
}
});
}
return Video(video_data_create_json);
}