---
title: dictionaryRepresentation()
framework: foundation
role: symbol
role_heading: Instance Method
path: foundation/nsmaptable/dictionaryrepresentation()
---

# dictionaryRepresentation()

Returns a dictionary representation of the map table.

## Declaration

```swift
func dictionaryRepresentation() -> [AnyHashable : ObjectType]
```

## Return Value

Return Value A dictionary representation of the map table.

## Discussion

Discussion The map table’s values and keys must conform to all the requirements specified in setObject(_:forKey:) in NSMutableDictionary.
