ICloudFile.fromMap constructor
ICloudFile.fromMap(
- Map map
Constructor to create the object from the map passed from platform code
Implementation
ICloudFile.fromMap(Map<dynamic, dynamic> map)
: relativePath = map['relativePath'] as String,
sizeInBytes = map['sizeInBytes'],
creationDate = DateTime.fromMillisecondsSinceEpoch(
((map['creationDate'] as double) * 1000).round()),
contentChangeDate = DateTime.fromMillisecondsSinceEpoch(
((map['contentChangeDate'] as double) * 1000).round()),
isDownloading = map['isDownloading'],
downloadStatus = _mapToDownloadStatusFromNSKeys(map['downloadStatus']),
isUploading = map['isUploading'],
isUploaded = map['isUploaded'],
hasUnresolvedConflicts = map['hasUnresolvedConflicts'];