collection as $key => $item) { $array[$key] = new WithdrawResource($item); } return [ 'hasMore' => $this->resource->hasMorePages(), 'list' => $array, ]; } }