Riok.Mapperly by Mapperly Contributors, Lars Tönz, Manuel Allenspach

<PackageReference Include="Riok.Mapperly" Version="4.0.0-next.4" />

 MapEnumAttribute

public sealed class MapEnumAttribute : Attribute
Customizes how enums are mapped.
public object FallbackValue { get; set; }

The fallback value if an enum cannot be mapped, used instead of throwing.

public bool IgnoreCase { get; set; }

Whether the case should be ignored during mappings.

public EnumNamingStrategy NamingStrategy { get; set; }

The strategy to be used to map enums from/to strings.

public EnumMappingStrategy Strategy { get; }

The strategy to be used to map enums to enums.

Customizes how enums are mapped.