|  |  | 1 |  | using LGDXRobotCloud.Data.Models.DTOs.V1.Responses; | 
|  |  | 2 |  |  | 
|  |  | 3 |  | namespace LGDXRobotCloud.Data.Models.Business.Navigation; | 
|  |  | 4 |  |  | 
|  |  | 5 |  | public record RobotCreateResponseBusinessModel | 
|  |  | 6 |  | { | 
|  | 1 | 7 |  |   public required Guid RobotId { get; set; } | 
|  |  | 8 |  |  | 
|  | 2 | 9 |  |   public required string RobotName { get; set; } | 
|  |  | 10 |  |  | 
|  | 1 | 11 |  |   public required string RootCertificate { get; set; } | 
|  |  | 12 |  |  | 
|  | 1 | 13 |  |   public required string RobotCertificatePrivateKey { get; set; } | 
|  |  | 14 |  |  | 
|  | 1 | 15 |  |   public required string RobotCertificatePublicKey { get; set; } | 
|  |  | 16 |  | } | 
|  |  | 17 |  |  | 
|  |  | 18 |  | public static class RobotCreateResponseBusinessModelExtensions | 
|  |  | 19 |  | { | 
|  |  | 20 |  |   public static RobotCertificateIssueDto ToDto(this RobotCreateResponseBusinessModel model) | 
|  |  | 21 |  |   { | 
|  |  | 22 |  |     return new RobotCertificateIssueDto { | 
|  |  | 23 |  |       Robot = new RobotSearchDto { | 
|  |  | 24 |  |         Id = model.RobotId, | 
|  |  | 25 |  |         Name = model.RobotName | 
|  |  | 26 |  |       }, | 
|  |  | 27 |  |       RootCertificate = model.RootCertificate, | 
|  |  | 28 |  |       RobotCertificatePrivateKey = model.RobotCertificatePrivateKey, | 
|  |  | 29 |  |       RobotCertificatePublicKey = model.RobotCertificatePublicKey | 
|  |  | 30 |  |     }; | 
|  |  | 31 |  |   } | 
|  |  | 32 |  | } |