public FieldOptionViewModel Build(CachedFieldOption cachedFieldOption)
 {
     return new FieldOptionViewModel()
       {
     Value = cachedFieldOption.Value
       };
 }
        public FieldViewModel Build(CachedField cachedField)
        {
            IEnumerable<CachedFieldOption> cachedFieldOptions = new CachedFieldOption[] { };

              if (!string.IsNullOrEmpty(cachedField.CachedFieldOptions))
            cachedFieldOptions = JsonConvert.DeserializeObject<IEnumerable<CachedFieldOption>>(cachedField.CachedFieldOptions);

              return new FieldViewModel()
              {
            Id = cachedField.FieldId,
            FieldType = new FieldTypeViewModel() { Code = cachedField.FieldTypeCode },
            Name = cachedField.Name,
            FieldOptions = cachedFieldOptions.Select(
              fo => new FieldOptionViewModelBuilder(this.handler).Build(fo)
            )
              };
        }