Initializer

init(from:)

Creates a Boolean from an integer wrapped in a data value.

Declaration

init?(from dataValue: MLDataValue)

Discussion

Use this initializer to create a Boolean by converting an MLDataValue with an underlying type of Int. You can confirm the data value’s underlying type by retrieving a non-nil value from intValue or by inspecting the type property.

Relationships

See Also

Using a Boolean as a Data Value

var dataValue: MLDataValue

The Boolean wrapped in a data value.

static var dataValueType: MLDataValue.ValueType

The underlying type a Boolean uses when it wraps itself in a data value.