Message.fromJson constructor
Message.fromJson(
- Map json_
Implementation
Message.fromJson(core.Map json_)
: this(
android: json_.containsKey('android')
? AndroidConfig.fromJson(
json_['android'] as core.Map<core.String, core.dynamic>)
: null,
apns: json_.containsKey('apns')
? ApnsConfig.fromJson(
json_['apns'] as core.Map<core.String, core.dynamic>)
: null,
condition: json_.containsKey('condition')
? json_['condition'] as core.String
: null,
data: json_.containsKey('data')
? (json_['data'] as core.Map<core.String, core.dynamic>).map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
fcmOptions: json_.containsKey('fcmOptions')
? FcmOptions.fromJson(
json_['fcmOptions'] as core.Map<core.String, core.dynamic>)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
notification: json_.containsKey('notification')
? Notification.fromJson(
json_['notification'] as core.Map<core.String, core.dynamic>)
: null,
token:
json_.containsKey('token') ? json_['token'] as core.String : null,
topic:
json_.containsKey('topic') ? json_['topic'] as core.String : null,
webpush: json_.containsKey('webpush')
? WebpushConfig.fromJson(
json_['webpush'] as core.Map<core.String, core.dynamic>)
: null,
);