listFromJson static method

Implementation

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

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

    return previousValue;
  });
}