You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/src/types/video.dart
+26-27Lines changed: 26 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -41,19 +41,19 @@ class Video {
41
41
finalString videoId;
42
42
43
43
/// When a video was created, presented in ISO-8601 format.
44
-
finalDateTime? createdAt;
44
+
finalDateTime createdAt;
45
45
46
46
/// The title of the video content.
47
-
finalString? title;
47
+
finalString title;
48
48
49
49
/// The description for the video content.
50
-
finalString? description;
50
+
finalString description;
51
51
52
52
/// The date and time the API created the video. Date and time are provided using ISO-8601 UTC format.
53
-
finalString? publishedAt;
53
+
finalString publishedAt;
54
54
55
55
/// The date and time the video was updated. Date and time are provided using ISO-8601 UTC format.
56
-
finalDateTime? updatedAt;
56
+
finalDateTime updatedAt;
57
57
58
58
/// The date and time the video was discarded.
59
59
finalDateTime? discardedAt;
@@ -62,7 +62,7 @@ class Video {
62
62
finalDateTime? deletesAt;
63
63
64
64
/// Returns `true` for videos you discarded.
65
-
finalbool? discarded;
65
+
finalbool discarded;
66
66
67
67
/// Returns the language of a video in [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
68
68
@_JsonLocaleConverter()
@@ -72,50 +72,49 @@ class Video {
72
72
finalLanguageOrigin? languageOrigin;
73
73
74
74
/// One array of tags (each tag is a string) in order to categorize a video. Tags may include spaces.
75
-
finalList<String>? tags;
75
+
finalList<String> tags;
76
76
77
77
/// Metadata you can use to categorise and filter videos. Metadata is a list of dictionaries, where each dictionary represents a key value pair for categorising a video. [Dynamic Metadata](https://api.video/blog/endpoints/dynamic-metadata) allows you to define a key that allows any value pair.
78
-
finalList<Metadata>? metadata;
78
+
finalList<Metadata> metadata;
79
79
80
80
/// The source information about the video.
81
-
finalVideoSource? source;
81
+
finalVideoSource source;
82
82
83
83
/// The details about the video object that you can use to work with the video object.
84
-
finalVideoAssets? assets;
84
+
finalVideoAssets assets;
85
85
86
86
/// The id of the player that will be applied on the video.
87
87
finalString? playerId;
88
88
89
89
/// Defines if the content is publicly reachable or if a unique token is needed for each play session. Default is true. Tutorials on [private videos](https://api.video/blog/endpoints/private-videos).
90
-
@JsonKey(name:'_public')
91
-
finalbool? public;
90
+
finalbool public;
92
91
93
92
/// Defines if video is panoramic.
94
-
finalbool? panoramic;
93
+
finalbool panoramic;
95
94
96
95
/// This lets you know whether mp4 is supported. If enabled, an mp4 URL will be provided in the response for the video.
0 commit comments