listFromJson static method

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

Implementation

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

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

    return previousValue;
  });
}