toJson method
Implementation
Map<String, dynamic> toJson() {
final data = <String, dynamic>{};
data['path'] = path;
data['title'] = title;
data['author'] = author;
data['width'] = width;
data['height'] = height;
if (orientation != null) {
data['orientation'] = orientation;
}
data['filesize'] = filesize;
data['duration'] = duration;
if (isCancel != null) {
data['isCancel'] = isCancel;
}
data['file'] = File(path!).toString();
return data;
}