StoryVideo.fromJson constructor

StoryVideo.fromJson(
  1. Map<String, dynamic> json
)

Parse from a json

Implementation

factory StoryVideo.fromJson(Map<String, dynamic> json) => StoryVideo(
      duration: json['duration'],
      width: json['width'],
      height: json['height'],
      hasStickers: json['has_stickers'],
      isAnimation: json['is_animation'],
      minithumbnail: json['minithumbnail'] == null
          ? null
          : Minithumbnail.fromJson(json['minithumbnail']),
      thumbnail: json['thumbnail'] == null
          ? null
          : Thumbnail.fromJson(json['thumbnail']),
      preloadPrefixSize: json['preload_prefix_size'],
      video: File.fromJson(json['video']),
    );