toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'id': id,
'sizeKB': sizeKB,
'name': name,
'type': type,
'pickleScanResult': pickleScanResult,
'pickleScanMessage': pickleScanMessage,
'virusScanResult': virusScanResult,
'virusScanMessage': virusScanMessage,
'scannedAt': scannedAt,
'metadata': metadata?.toJson(),
'hashes': hashes?.toJson(),
'downloadUrl': downloadUrl,
'primary': primary,
};
}