Table of Contents

Class VisibilityConditionConfigurationJsonConverter

Namespace
Kentico.Forms.Web.Mvc
Assembly
Kentico.Content.Web.Mvc.dll

Encapsulates Newtonsoft.Json.JsonConverter for visibility condition configuration.

public class VisibilityConditionConfigurationJsonConverter : JsonConverter
Inheritance
object
JsonConverter
VisibilityConditionConfigurationJsonConverter
Extension Methods

Constructors

VisibilityConditionConfigurationJsonConverter()

Initializes the new instance of VisibilityConditionConfigurationJsonConverter.

public VisibilityConditionConfigurationJsonConverter()

VisibilityConditionConfigurationJsonConverter(IVisibilityConditionDefinitionProvider)

Initializes the new instance of VisibilityConditionConfigurationJsonConverter with given visibilityConditionDefinitionProvider.

public VisibilityConditionConfigurationJsonConverter(IVisibilityConditionDefinitionProvider visibilityConditionDefinitionProvider)

Parameters

visibilityConditionDefinitionProvider IVisibilityConditionDefinitionProvider

Methods

CanConvert(Type)

Returns true if objectType is VisibilityConditionConfiguration.

public override bool CanConvert(Type objectType)

Parameters

objectType Type

Type to be checked.

Returns

bool

ReadJson(JsonReader, Type, object, JsonSerializer)

Reads the JSON representation of the object for visibility condition.

public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)

Parameters

reader JsonReader

Reader that provides access to serialized JSON data.

objectType Type

Type of the object.

existingValue object

The existing value of the object being read.

serializer JsonSerializer

The calling serializer.

Returns

object

WriteJson(JsonWriter, object, JsonSerializer)

Writes the JSON representation of the object for visibility condition.

public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)

Parameters

writer JsonWriter

Writer that provided a way for generating JSON data.

value object

Configuration to be serialized.

serializer JsonSerializer

The calling serializer.