AndroidConfig.fromJson constructor
AndroidConfig.fromJson(
- Map json_
Implementation
AndroidConfig.fromJson(core.Map json_)
: this(
collapseKey: json_.containsKey('collapseKey')
? json_['collapseKey'] 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,
directBootOk: json_.containsKey('directBootOk')
? json_['directBootOk'] as core.bool
: null,
fcmOptions: json_.containsKey('fcmOptions')
? AndroidFcmOptions.fromJson(
json_['fcmOptions'] as core.Map<core.String, core.dynamic>)
: null,
notification: json_.containsKey('notification')
? AndroidNotification.fromJson(
json_['notification'] as core.Map<core.String, core.dynamic>)
: null,
priority: json_.containsKey('priority')
? json_['priority'] as core.String
: null,
restrictedPackageName: json_.containsKey('restrictedPackageName')
? json_['restrictedPackageName'] as core.String
: null,
ttl: json_.containsKey('ttl') ? json_['ttl'] as core.String : null,
);