# ee.FeatureCollection.toDictionary

Extract properties from a feature as a dictionary.

<br />

| Usage | Returns |
|---|---|
| `FeatureCollection.toDictionary(*properties*)` | Dictionary |

| Argument | Type | Details |
|---|---|---|
| this: `element` | Element | The feature to extract the property from. |
| `properties` | List, default: null | The list of properties to extract. Defaults to all non-system properties. |

## Examples

### Code Editor (JavaScript)

```javascript
// FeatureCollection of power plants.
var fc = ee.FeatureCollection('WRI/GPPD/power_plants');

print('All non-system FeatureCollection properties as an ee.Dictionary',
      fc.toDictionary());
print('Selected properties as an ee.Dictionary',
      fc.toDictionary(['description', 'provider']));
```
Python setup

See the [Python Environment](https://developers.google.com/earth-engine/guides/python_install) page for information on the Python API and using
`geemap` for interactive development.

```python
import ee
import geemap.core as geemap
```

### Colab (Python)

```python
# FeatureCollection of power plants.
fc = ee.FeatureCollection('WRI/GPPD/power_plants')

display('All non-system FeatureCollection properties as an ee.Dictionary:',
        fc.toDictionary())
display('Selected properties as an ee.Dictionary:',
        fc.toDictionary(['description', 'provider']))
```