MediaInfo.fromJson constructor
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!);
}