AVPMediaInfo.fromJson constructor
AVPMediaInfo.fromJson(
- Map json
Implementation
AVPMediaInfo.fromJson(Map<dynamic, dynamic> json) {
status = json['status'];
mediaType = json['mediaType'];
if (json['thumbnails'] != null) {
// thumbnails = new List<AVPThumbnailInfo>();
// thumbnails = List.empty();
json['thumbnails'].forEach((v) {
thumbnails!.add(new AVPThumbnailInfo.fromJson(v));
});
}
if (json['tracks'] != null) {
// tracks = new List<AVPTrackInfo>();
json['tracks'].forEach((v) {
tracks!.add(new AVPTrackInfo.fromJson(v));
});
}
title = json['title'];
duration = json['duration'];
transcodeMode = json['transcodeMode'];
coverURL = json['coverURL'];
}