---
title: "init(from:)"
framework: createml
role: symbol
role_heading: Initializer
path: "createml/mldatavalue/dictionarytype/init(from:)"
---

# init(from:)

Creates a data-value dictionary from another dictionary.

## Declaration

```swift
init?(from dataValue: MLDataValue)
```

## Discussion

Discussion Use this initializer to create an MLDataValue.DictionaryType from another data-value dictionary instance. You can confirm the data value’s underlying type by retrieving a non-nil value from dictionaryValue or by inspecting the type property.
