listFromJson static method

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

Implementation

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

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

    return previousValue;
  });
}