property

fun <T> property(attribute: Attribute, value: T?): Either<PropertyTypeError, Property>

Return

A new Property with the provided attribute and value, if the value is of the corresponding Attribute.Type.

A PropertyTypeError if the value is not of the corresponding Attribute.Type.