AndroidNotification.fromJson constructor
AndroidNotification.fromJson(
- Map json_
Implementation
AndroidNotification.fromJson(core.Map json_)
: this(
body: json_.containsKey('body') ? json_['body'] as core.String : null,
bodyLocArgs: json_.containsKey('bodyLocArgs')
? (json_['bodyLocArgs'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
bodyLocKey: json_.containsKey('bodyLocKey')
? json_['bodyLocKey'] as core.String
: null,
bypassProxyNotification: json_.containsKey('bypassProxyNotification')
? json_['bypassProxyNotification'] as core.bool
: null,
channelId: json_.containsKey('channelId')
? json_['channelId'] as core.String
: null,
clickAction: json_.containsKey('clickAction')
? json_['clickAction'] as core.String
: null,
color:
json_.containsKey('color') ? json_['color'] as core.String : null,
defaultLightSettings: json_.containsKey('defaultLightSettings')
? json_['defaultLightSettings'] as core.bool
: null,
defaultSound: json_.containsKey('defaultSound')
? json_['defaultSound'] as core.bool
: null,
defaultVibrateTimings: json_.containsKey('defaultVibrateTimings')
? json_['defaultVibrateTimings'] as core.bool
: null,
eventTime: json_.containsKey('eventTime')
? json_['eventTime'] as core.String
: null,
icon: json_.containsKey('icon') ? json_['icon'] as core.String : null,
image:
json_.containsKey('image') ? json_['image'] as core.String : null,
lightSettings: json_.containsKey('lightSettings')
? LightSettings.fromJson(
json_['lightSettings'] as core.Map<core.String, core.dynamic>)
: null,
localOnly: json_.containsKey('localOnly')
? json_['localOnly'] as core.bool
: null,
notificationCount: json_.containsKey('notificationCount')
? json_['notificationCount'] as core.int
: null,
notificationPriority: json_.containsKey('notificationPriority')
? json_['notificationPriority'] as core.String
: null,
proxy:
json_.containsKey('proxy') ? json_['proxy'] as core.String : null,
sound:
json_.containsKey('sound') ? json_['sound'] as core.String : null,
sticky:
json_.containsKey('sticky') ? json_['sticky'] as core.bool : null,
tag: json_.containsKey('tag') ? json_['tag'] as core.String : null,
ticker: json_.containsKey('ticker')
? json_['ticker'] as core.String
: null,
title:
json_.containsKey('title') ? json_['title'] as core.String : null,
titleLocArgs: json_.containsKey('titleLocArgs')
? (json_['titleLocArgs'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
titleLocKey: json_.containsKey('titleLocKey')
? json_['titleLocKey'] as core.String
: null,
vibrateTimings: json_.containsKey('vibrateTimings')
? (json_['vibrateTimings'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
visibility: json_.containsKey('visibility')
? json_['visibility'] as core.String
: null,
);