/// <summary> /// Returns a new instance created from a dto. /// </summary> /// <returns>The new instance.</returns> internal static RgbColor FromDto(RgbColorDto dto) { return(new RgbColor(dto)); }
/// <summary> /// Creates a new color based on an led dto. /// </summary> /// <param name="dto">The dto to convert into the model.</param> public RgbColor(RgbColorDto dto) { R = dto.R; G = dto.G; B = dto.B; }