API
  • tell the serializer to serialize the property as element - this is the default behavior but shoud be specified when wanted to update the default name of the classe or if the class is not decorated (without @XmlName)

    Parameters

    Returns (
        _value: unknown,
        context: { metadata: DecoratorMetadataObject; name: string | symbol },
    ) => void