View Source
  Class BlockEditorDataConverter
  
  Converts the block json data into objects
    Inheritance
      System.Object
      
   
  
  Assembly: Umbraco.Infrastructure.dll
  Syntax
  
    public abstract class BlockEditorDataConverter
   
  Constructors
  
  
    View Source
  
  BlockEditorDataConverter(String)
  
  
  Declaration
  
    protected BlockEditorDataConverter(string propertyEditorAlias)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.String | propertyEditorAlias |  | 
    
  
  Methods
  
  
    View Source
  
  Convert(BlockValue)
  
  
  Declaration
  
    public BlockEditorData Convert(BlockValue value)
   
  Parameters
  
  Returns
  
  
    View Source
  
  ConvertFrom(JToken)
  
  
  Declaration
  
    public BlockEditorData ConvertFrom(JToken json)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | JToken | json |  | 
    
  
  Returns
  
  
    View Source
  
  Deserialize(String)
  
  
  Declaration
  
    public BlockEditorData Deserialize(string json)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.String | json |  | 
    
  
  Returns
  
  
    View Source
  
  GetBlockReferences(JToken)
  Return the collection of IBlockReference from the block editor's Layout (which could be an array or
an object depending on the editor)
Declaration
  
    protected abstract IEnumerable<ContentAndSettingsReference>? GetBlockReferences(JToken jsonLayout)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | JToken | jsonLayout |  | 
    
  
  Returns
  
  
    View Source
  
  TryDeserialize(String, out BlockEditorData)
  
  
  Declaration
  
    public bool TryDeserialize(string json, out BlockEditorData blockEditorData)
   
  Parameters
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.Boolean |  |