VideoInfo.fromMap constructor

VideoInfo.fromMap(
  1. Map<String, dynamic> json
)

Implementation

factory VideoInfo.fromMap(Map<String, dynamic> json) => VideoInfo(
      path: json['path'],
      title: json['title'],
      author: json['author'],
      width: json['width'],
      height: json['height'],
      rotation: json['rotation'],
      filesize: json['filesize'],
      duration: double.tryParse('${json['duration']}'),
    );