Contents

MLDataValueConvertible

A type that can convert itself to and from a data value.

Declaration

protocol MLDataValueConvertible

Overview

You can use any type that conforms to the MLDataValueConvertible protocol in an MLDataValue or an MLDataTable. For example, you can create a data table by using its init(dictionary:) initializer with a [String: ``MLDataValueConvertible``] dictionary.

Topics

Converting from a data value to a type’s instance

Converting from a type’s instance to a data value