listFromJson static method

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

Implementation

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

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

    return previousValue;
  });
}