public CustomField(CustomField customField) { Id = customField.Id; Name = customField.Name; Required = customField.Required; Editable = customField.Editable; MultiValue = customField.MultiValue; MaxLength = customField.MaxLength; if (customField.Options != null) { Options = new List<FieldOption>(); foreach (var cfo in customField.Options) { Options.Add(new FieldOption(cfo)); } } FlagToDelete = customField.FlagToDelete; }