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

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

 MapNestedPropertiesAttribute

public sealed class MapNestedPropertiesAttribute : Attribute
Maps all properties from a nested path on the source to the root of the target.
public IReadOnlyCollection<string> Source { get; }

Gets the name of the source property to flatten.

public string SourceFullName { get; }

Gets the full name of the source property path to flatten.

public MapNestedPropertiesAttribute(string source)

Maps all members of the specified source property to the root of the target.

public MapNestedPropertiesAttribute(string[] source)

Maps all members of the specified source property to the root of the target.