namespace Go.Features.Shell;
///
/// Navigation target for the shell.
///
public abstract class NavTarget
{
{{ $foreach navTarget in NavTargets }}
public class {{ name }}: NavTarget
{
///
/// Creates a new instance of the class.
///
public {{ name }}(): base("{{ escapedUrl }}")
{
}
{{ $foreach queryParam in queryParameters }}
public {{ $if isRequired }}required {{ $end }}{{ type }} {{ name }} { get; init; }
{{ $next }}
}
}
"IsRequired" is added as a property both on the queryParameters type and the navTarget type