WebpushConfig.fromJson constructor
WebpushConfig.fromJson(
- Map _json
Implementation
WebpushConfig.fromJson(core.Map _json)
: this(
data: _json.containsKey('data')
? (_json['data'] as core.Map<core.String, core.dynamic>).map(
(key, item) => core.MapEntry(
key,
item as core.String,
),
)
: null,
fcmOptions: _json.containsKey('fcmOptions')
? WebpushFcmOptions.fromJson(
_json['fcmOptions'] as core.Map<core.String, core.dynamic>)
: null,
headers: _json.containsKey('headers')
? (_json['headers'] as core.Map<core.String, core.dynamic>).map(
(key, item) => core.MapEntry(
key,
item as core.String,
),
)
: null,
notification: _json.containsKey('notification')
? _json['notification'] as core.Map<core.String, core.dynamic>
: null,
);