exported(as:)
Exports this entity as a transferable intent value type.
Declaration
func exported<T>(as type: T.Type) async throws -> T where T : IntentValueConvertible, T : TransferableParameters
- type:
The target value type (e.g.,
IntentPerson.self).
Return Value
An instance of the requested type.
Discussion
Use this for types that conform to both Transferable and IntentValueConvertible, such as IntentPerson. The entity must declare a ValueRepresentation for the requested type.