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, item) => core.MapEntry(
key,
item 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,
);