/// <summary> /// Map item fields to field set model /// </summary> /// <param name="fields"></param> /// <param name="levels"></param> /// <returns></returns> public IEnumerable <FieldModel> MapItemFields(ItemFields fields, int levels) { return(fields.Select(field => CreateField(field, levels)).ToList()); }