fromJson<T> static method 
    
    
    
  Implementation
  @visibleForTesting
static PageableItemList<T>? fromJson<T>(
  jsonObject,
  T? Function(dynamic) fromJSON,
) {
  if (jsonObject == null) return null;
  var result = PageableItemList<T>._privateConstructor();
  if (jsonObject["items"] != null) {
    result._items = [];
    for (var item in jsonObject["items"]) {
      var temp = fromJSON(item);
      if (temp != null) result._items!.add(temp);
    }
  }
  result._page = jsonObject["page"];
  result._totalPages = jsonObject["totalPages"];
  return result;
}