listFromJson static method

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

Implementation

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

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

    return previousValue;
  });
}