MediaInfo.fromJson constructor

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

Implementation

MediaInfo.fromJson(Map<String, dynamic> json) {
  path = json['path'];
  title = json['title'];
  author = json['author'];
  width = json['width'];
  height = json['height'];
  orientation = json['orientation'];
  filesize = json['filesize'];
  duration = double.tryParse('${json['duration']}');
  isCancel = json['isCancel'];
  file = File(path!);
}