VideoData.fromJson constructor

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

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,
  );
}