namespace WeatherForecast.Models {
  /// 
  /// 
  /// 
  public class RouteModel {
    /// 
    /// 
    /// 
    public string Target { get; set; }
    /// 
    /// 
    /// 
    public string? Component { get; set; }
    /// 
    /// 
    /// 
    public List? ChildRoutes { get; set; }
    /// 
    /// 
    /// 
    /// 
    public RouteModel(Core.DomainObjects.Route route) {
      Target = route.Target;
      Component = route.Component;
      ChildRoutes = route.ChildRoutes?.Select(x => new RouteModel(x)).ToList();
    }
  }
}