listFromJson static method

Implementation

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

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

    return previousValue;
  });
}