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