Video class
The Video resource is a JSON formatted version of a Pexels video. The Video API endpoints respond with the video data formatted in this shape.
Constructors
-
Video({required int? id, required int? width, required int? height, required int? duration, required String? url, required String? image, required User? user, required List<
VideoFiles> ? videoFiles, required List<VideoPictures> ? videoPictures}) - Named ConstructorsVideo with required params
-
Video.fromJson(Map<
String, dynamic> json) -
Video.fromJson Mapping object to Video
factory
Properties
- duration ↔ int?
-
The duration of the video in seconds.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- height ↔ int?
-
The real height of the video in pixels
getter/setter pair
- id ↔ int?
-
The id of the video.
getter/setter pair
- image ↔ String?
-
URL to a screenshot of the video.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- url ↔ String?
-
The Pexels URL where the video is located.
getter/setter pair
- user ↔ User?
-
The videographer who shot the video.
getter/setter pair
-
videoFiles
↔ List<
VideoFiles> ? -
An array of different sized versions of the video.
getter/setter pair
-
videoPictures
↔ List<
VideoPictures> ? -
An array of preview pictures of the video.
getter/setter pair
- width ↔ int?
-
The real width of the video in pixels.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited