MediaInfo.fromJson constructor
MediaInfo.fromJson(
- 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!);
frameRate = double.tryParse('${json['frameRate']}');
bitRate = double.tryParse('${json['bitRate']}');
sampleRate = json['sampleRate'];
channelCount = json['channelCount'];
audioBitRate = double.tryParse('${json['audioBitRate']}');
}