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,
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,
);