listFromJson static method

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

Implementation

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

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

    return previousValue;
  });
}