ToonPropertyNameAttribute lets a model member declare the TOON property name that should be used during encode and decode operations.
using DevOp.Toon.Core;
public sealed class ProductDto
{
[ToonPropertyName("product_id")]
public int Id { get; init; }
[ToonPropertyName("display_name")]
public string Name { get; init; } = string.Empty;
}
This attribute is useful when:
The attribute lives in DevOp.Toon.Core, but it becomes meaningful when consumed by higher-level packages such as DevOp.Toon.