DownloadsNotificationModel.fromJson constructor
DownloadsNotificationModel.fromJson(
- Map<String, dynamic> json
)
Implementation
DownloadsNotificationModel.fromJson(Map<String, dynamic> json) {
fileName = json['ReportName']?.toString();
fileUri = json['FileUri']?.toString();
downloadFileId = json['DownloadFileId'] is int
? json['DownloadFileId']
: int.tryParse(json['DownloadFileId']?.toString() ?? '');
status = json['Status']?.toString() ?? '';
errorCode = json['ErrorCode']?.toString() ?? '';
message = json['Message']?.toString() ?? '';
}