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

# dictionaryRepresentation()

Returns the contents of a diagnostic as a dictionary.

## Declaration

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

## Return Value

Return Value A Dictionary (Swift) or NSDictionary (Objective-C) object containing the JSON representation of the contents of the diagnostic.

## See Also

### Generating a report

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