21 lines
714 B
C#
21 lines
714 B
C#
using Core;
|
|
using Core.Dto.Settings;
|
|
using Core.Settings;
|
|
|
|
namespace Generator.Mappers;
|
|
|
|
public static class TemplateMapper
|
|
{
|
|
public static TemplatesConfig Map(this TemplatesConfigDto dto)
|
|
=> new()
|
|
{
|
|
Folder = new Location(dto.Folder),
|
|
PlantUml = new Location([dto.Folder, dto.PlantUml]),
|
|
DotnetServerGeneratorConfig = new Location(dto.DotnetServerGeneratorConfig),
|
|
DotnetClientGeneratorConfig = new Location(dto.DotnetClientGeneratorConfig),
|
|
JavaGeneratorConfig = new Location(dto.JavaGeneratorConfig),
|
|
ServerIgnore = new Location(dto.ServerIgnore),
|
|
ClientIgnore = new Location(dto.ClientIgnore),
|
|
};
|
|
|
|
} |