CivitaFile.fromJson constructor
CivitaFile.fromJson(
- Map<String, dynamic> json
)
Implementation
CivitaFile.fromJson(Map<String, dynamic> json) {
id = json['id'];
sizeKB = '${json['sizeKB']}';
name = json['name'] ?? '';
type = json['type'] ?? '';
pickleScanResult = json['pickleScanResult'] ?? '';
pickleScanMessage = json['pickleScanMessage'] ?? '';
virusScanResult = json['virusScanResult'] ?? '';
virusScanMessage = json['virusScanMessage'] ?? '';
scannedAt = json['scannedAt'] ?? '';
if (json['metadata'] != null) {
metadata = CivitaImageMatedata.fromJson(json['metadata']);
}
if (json['hashes'] != null) {
hashes = CivitaHashes.fromJson(json['hashes']);
}
downloadUrl = json['downloadUrl'] ?? '';
primary = json['primary'];
}