# AssetCollection.to_fields

```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**

`AssetFieldNames | None`

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

**storage**

`Storage | None`

Additional storage registry entries to retain.

**authentication**

`Authentication | None`

Additional authentication registry entries to retain.

## Returns

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