/// <summary>
 /// Create from service model
 /// </summary>
 /// <param name="model"></param>
 public AttributeWriteRequestApiModel(AttributeWriteRequestModel model)
 {
     if (model == null)
     {
         throw new ArgumentNullException(nameof(model));
     }
     NodeId    = model.NodeId;
     Value     = model.Value;
     Attribute = model.Attribute;
 }
 /// <summary>
 /// Create from service model
 /// </summary>
 /// <param name="model"></param>
 public static AttributeWriteRequestApiModel ToApiModel(
     this AttributeWriteRequestModel model)
 {
     if (model == null)
     {
         return(null);
     }
     return(new AttributeWriteRequestApiModel {
         NodeId = model.NodeId,
         Value = model.Value,
         Attribute = (IIoT.OpcUa.Api.Twin.Models.NodeAttribute)model.Attribute
     });
 }