listFromJson static method

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

Implementation

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

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

    return previousValue;
  });
}