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