public static Sha1Wire Convert(this Sha1 model)
        {
            var wire = new Sha1Wire
            {
                Set   = true,
                Blit0 = model.Blit0,
                Blit1 = model.Blit1,
                Blit2 = model.Blit2
            };

            return(wire);
        }
        public static Sha1Wire Convert(this Sha1?model)
        {
            if (model == null)
            {
                return(new Sha1Wire());
            }

            var wire = new Sha1Wire
            {
                Set   = true,
                Blit0 = model.Value.Blit0,
                Blit1 = model.Value.Blit1,
                Blit2 = model.Value.Blit2
            };

            return(wire);
        }
 public static Sha1?Convert(this Sha1Wire wire)
 {
     if (wire == null)
     {
         return(default);