ToolWithApiKeyDto.fromModel constructor
ToolWithApiKeyDto.fromModel(
- ToolModel tool, {
- ServerModel? server,
Implementation
factory ToolWithApiKeyDto.fromModel(ToolModel tool, {ServerModel? server}) =>
ToolWithApiKeyDto(
id: tool.id,
alias: tool.alias,
host: tool.host,
port: tool.port,
apiKey: tool.apiKey,
status: tool.status,
serverId: tool.serverId,
server: server == null ? null : ToolServerDto.fromModel(server),
);