public PipelineJsonModel(IPipeline pipeline) { Name = pipeline.GetDisplayName(); Receive = pipeline.GetPipelineGenericArguments()[0].FullName; Return = pipeline.GetPipelineGenericArguments()[1].FullName; Blocks = pipeline.Blocks.Select(block => new PipelineBlockJsonModel(block)).ToList(); }