factory FileList.fromMap(Map<String, dynamic> map) { return FileList( total: map['total'], files: List<File>.from(map['files'].map((p) => File.fromMap(p))), ); }