mapFromJson static method
Implementation
static Map<String, PreferencesNotification> mapFromJson(
Map<String, dynamic>? json) {
if (json == null) {
return <String, PreferencesNotification>{};
}
return json.entries.fold(<String, PreferencesNotification>{},
(Map<String, PreferencesNotification> previousValue, element) {
final PreferencesNotification? object =
PreferencesNotification.fromJson(element.value);
if (object is PreferencesNotification) {
previousValue[element.key] = object;
}
return previousValue;
});
}