BasketProductLineFieldDisplayValueFormatContext Class
The BasketProductLineFieldDisplayValueFormatContext class provides contextual information for formatting basket product line field values for display. It encapsulates the field value that needs to be formatted.

Properties
Value
public ErpFieldValue? Value { get; }
The product line field value to format for display. This is the raw field value that will be converted to a user-friendly string representation.
The value can be null if no value has been provided for the field.
Example Usage
Here's an example of using the BasketProductLineFieldDisplayValueFormatContext in a formatting method:
public override ValueTask<string?> FormatValueForDisplayAsync(
BasketProductLineFieldDisplayValueFormatContext context,
CancellationToken cancellationToken)
{
var value = context.Value?.AsString() ?? string.Empty;
var formattedString = value.Trim().ToLower();
return ValueTask.FromResult<string?>(formattedString);
}