Class VisibilityConditionConfigurationJsonConverter
Encapsulates Newtonsoft.Json.JsonConverter for visibility condition configuration.
public class VisibilityConditionConfigurationJsonConverter : JsonConverter
- Inheritance
-
objectJsonConverterVisibilityConditionConfigurationJsonConverter
- 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
TypeType 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
JsonReaderReader that provides access to serialized JSON data.
objectType
TypeType of the object.
existingValue
objectThe existing value of the object being read.
serializer
JsonSerializerThe 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
JsonWriterWriter that provided a way for generating JSON data.
value
objectConfiguration to be serialized.
serializer
JsonSerializerThe calling serializer.