toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'files': files.map((file) => file.toJson()).toList(),
'metadata': {
'generated': DateTime.now().toIso8601String(),
'totalFiles': files.length,
'uniqueUIDs': files.map((f) => f.uid).toSet().length,
},
};
}