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