VideoData.fromJson constructor
Implementation
factory VideoData.fromJson(Map<String, dynamic> json) {
final url = json['url'];
final coverUrl = json['coverUrl'];
final coverPath = json['coverPath'];
return VideoData(
url: url == null ? null : url as String,
coverUrl: coverUrl == null ? null : coverUrl as String,
coverPath: coverPath == null ? null : coverPath as String,
);
}