FileInfo.fromJson constructor
Converts a JSON map into a FileInfo object.
Implementation
factory FileInfo.fromJson(Map<String, dynamic> json) {
return FileInfo(
fileId: json['file_id'],
mode: json['mode'],
modeLabel: json['mode_label'],
folderId: json['folder_id'],
name: json['name'],
hash: json['hash'],
size: json['size'],
created: DateTime.parse(json['created_at']),
url: json['url'],
);
}