listFromJson static method

List<SectionLinksSelf> listFromJson(
  1. List? json
)

Implementation

static List<SectionLinksSelf> listFromJson(List<dynamic>? json) {
  if (json == null) {
    return <SectionLinksSelf>[];
  }

  return json.fold(<SectionLinksSelf>[],
      (List<SectionLinksSelf> previousValue, element) {
    final SectionLinksSelf? object = SectionLinksSelf.fromJson(element);
    if (object is SectionLinksSelf) {
      previousValue.add(object);
    }

    return previousValue;
  });
}