Notification.fromJson constructor
Notification.fromJson(
- Map json_
Implementation
Notification.fromJson(core.Map json_)
: this(
body: json_.containsKey('body') ? json_['body'] as core.String : null,
crmExperimentIds: json_.containsKey('crmExperimentIds')
? (json_['crmExperimentIds'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
docId: json_.containsKey('doc_id')
? json_['doc_id'] as core.String
: null,
docType: json_.containsKey('doc_type')
? json_['doc_type'] as core.String
: null,
dontShowNotification: json_.containsKey('dont_show_notification')
? json_['dont_show_notification'] as core.bool
: null,
iconUrl: json_.containsKey('iconUrl')
? json_['iconUrl'] as core.String
: null,
isDocumentMature: json_.containsKey('is_document_mature')
? json_['is_document_mature'] as core.bool
: null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
notificationGroup: json_.containsKey('notificationGroup')
? json_['notificationGroup'] as core.String
: null,
notificationType: json_.containsKey('notification_type')
? json_['notification_type'] as core.String
: null,
pcampaignId: json_.containsKey('pcampaign_id')
? json_['pcampaign_id'] as core.String
: null,
reason: json_.containsKey('reason')
? json_['reason'] as core.String
: null,
showNotificationSettingsAction:
json_.containsKey('show_notification_settings_action')
? json_['show_notification_settings_action'] as core.bool
: null,
targetUrl: json_.containsKey('targetUrl')
? json_['targetUrl'] as core.String
: null,
timeToExpireMs: json_.containsKey('timeToExpireMs')
? json_['timeToExpireMs'] as core.String
: null,
title:
json_.containsKey('title') ? json_['title'] as core.String : null,
);