listFromJson static method
Implementation
static List<PreferencesNotification> listFromJson(List<dynamic>? json) {
if (json == null) {
return <PreferencesNotification>[];
}
return json.fold(<PreferencesNotification>[],
(List<PreferencesNotification> previousValue, element) {
final PreferencesNotification? object =
PreferencesNotification.fromJson(element);
if (object is PreferencesNotification) {
previousValue.add(object);
}
return previousValue;
});
}