Skip to content

[F] $attribute

function $attribute(context, target): void

Specify that the target property should be encoded as an XML attribute instead of node.

Parameters

ParameterType
contextDecoratorContext
targetModelProperty

Returns

void