---
title: dictionaryRepresentation()
framework: metrickit
role: symbol
role_heading: Instance Method
path: metrickit/mxmetric/dictionaryrepresentation()
---

# dictionaryRepresentation()

Returns the contents of a metric as a dictionary.

## Declaration

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

## Return Value

Return Value A Dictionary (Swift) or NSDictionary (Objective-C) object containing a key-value representation of the metrics in the payload.

## See Also

### Generate a report

- [jsonRepresentation()](metrickit/mxmetric/jsonrepresentation().md)
