Class BlockDataConverter
Inheritance
System.Object
BlockDataConverter
Assembly: EPiServer.Cms.Shell.UI.dll
Version: 11.20.7
Syntax
[ServiceConfiguration(typeof(JsonConverter))]
public class BlockDataConverter : CamelCaseStringEnumConverter
Constructors
BlockDataConverter(IContentDataFactory<BlockData>, IContentDataBuilder, IContentTypeRepository<BlockType>)
Declaration
public BlockDataConverter(IContentDataFactory<BlockData> blockDataFactory, IContentDataBuilder blockDataBuilder, IContentTypeRepository<BlockType> blockTypeRepository)
Parameters
Methods
CanConvert(Type)
Declaration
public override bool CanConvert(Type objectType)
Parameters
Type |
Name |
Description |
System.Type |
objectType |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
ReadJson(JsonReader, Type, Object, JsonSerializer)
Declaration
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
Parameters
Type |
Name |
Description |
Newtonsoft.Json.JsonReader |
reader |
|
System.Type |
objectType |
|
System.Object |
existingValue |
|
Newtonsoft.Json.JsonSerializer |
serializer |
|
Returns
Type |
Description |
System.Object |
|
Overrides
WriteJson(JsonWriter, Object, JsonSerializer)
Declaration
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
Parameters
Type |
Name |
Description |
Newtonsoft.Json.JsonWriter |
writer |
|
System.Object |
value |
|
Newtonsoft.Json.JsonSerializer |
serializer |
|
Overrides
Extension Methods