/// <summary>
 /// Create api model from service model
 /// </summary>
 /// <param name="model"></param>
 public StructureDescriptionApiModel(StructureDescriptionModel model)
 {
     if (model == null)
     {
         throw new ArgumentNullException(nameof(model));
     }
     StructureDefinition = model.StructureDefinition == null ? null :
                           new StructureDefinitionApiModel(model.StructureDefinition);
     Name       = model.Name;
     DataTypeId = model.DataTypeId;
 }
 /// <summary>
 /// Clone
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public static StructureDescriptionModel Clone(this StructureDescriptionModel model)
 {
     if (model == null)
     {
         return(null);
     }
     return(new StructureDescriptionModel {
         DataTypeId = model.DataTypeId,
         Name = model.Name,
         StructureDefinition = model.StructureDefinition.Clone()
     });
 }