listFromJson static method

Implementation

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

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

    return previousValue;
  });
}