VideoNote.fromJson constructor

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

Parse from a json

Implementation

factory VideoNote.fromJson(Map<String, dynamic> json) => VideoNote(
  duration: json['duration'],
  length: json['length'],
  minithumbnail: json['minithumbnail'] == null ? null : Minithumbnail.fromJson(json['minithumbnail']),
  thumbnail: json['thumbnail'] == null ? null : Thumbnail.fromJson(json['thumbnail']),
  video: File.fromJson(json['video']),
);