---
title: "AssetCollection.to_fields"
description: "Convert the collection to fields ready for dataset ingestion."
image: "https://tilebox.com/images/tilebox-docs-social-preview.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://tilebox.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# AssetCollection.to_fields

import ParamField from "@docs/components/ParamField.astro";

```python
def AssetCollection.to_fields(
    *,
    fields: AssetFieldNames | None = None,
    storage: Storage | None = None,
    authentication: Authentication | None = None,
) -> dict[str, Assets | Storage | Authentication]
```

Convert the collection to fields ready for dataset ingestion.

## Parameters

**fields**

type: AssetFieldNames | None

Optional output names for the assets, storage, and authentication fields.
**storage**

type: Storage | None

Additional storage registry entries to retain.
**authentication**

type: Authentication | None

Additional authentication registry entries to retain.

## Returns

A field-name mapping containing `Assets` and any nonempty `Storage` or `Authentication` fields.

Source: https://tilebox.com/docs/api-reference/python/tilebox.datasets.assets/AssetCollection.to_fields/index.mdx
