View Source
  Class BlockEditorValues<TValue, TLayout>
  
  Used to deserialize json values and clean up any values based on the existence of element types and layout structure.
 
  
  
    Inheritance
      System.Object
      
   
  
  Assembly: Umbraco.Infrastructure.dll
  Syntax
  
    public class BlockEditorValues<TValue, TLayout>
    where TValue : BlockValue<TLayout>, new()
    where TLayout : class, IBlockLayoutItem, new()
   
  Type Parameters
  
    
      
        | Name | 
        Description | 
      
    
    
      
        | TValue | 
         | 
      
      
        | TLayout | 
         | 
      
    
  
  Constructors
  
  
    View Source
  
  BlockEditorValues(BlockEditorDataConverter<TValue, TLayout>, IBlockEditorElementTypeCache, ILogger)
  
  
  Declaration
  
    public BlockEditorValues(BlockEditorDataConverter<TValue, TLayout> dataConverter, IBlockEditorElementTypeCache elementTypeCache, ILogger logger)
   
  Parameters
  
  Methods
  
  
    View Source
  
  ConvertAndClean(TValue)
  
  
  Declaration
  
    public BlockEditorData<TValue, TLayout> ConvertAndClean(TValue blockValue)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | TValue | 
        blockValue | 
         | 
      
    
  
  Returns
  
  
    View Source
  
  DeserializeAndClean(Object)
  
  
  Declaration
  
    public BlockEditorData<TValue, TLayout> DeserializeAndClean(object propertyValue)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Object | 
        propertyValue | 
         | 
      
    
  
  Returns