Class MaskingRule.MaskingRuleConverter
- Namespace
- OpenPolicyAgent.Opa.OpenApi.Models.Components
- Assembly
- OpenPolicyAgent.Opa.dll
public class MaskingRule.MaskingRuleConverter : JsonConverter
- Inheritance
-
JsonConverterMaskingRule.MaskingRuleConverter
- Inherited Members
-
JsonConverter.CanWrite
Properties
CanRead
Gets a value indicating whether this Newtonsoft.Json.JsonConverter can read JSON.
public override bool CanRead { get; }
Property Value
- bool
trueif this Newtonsoft.Json.JsonConverter can read JSON; otherwise,false.
Methods
CanConvert(Type)
Determines whether this instance can convert the specified object type.
public override bool CanConvert(Type objectType)
Parameters
objectTypeTypeType of the object.
Returns
- bool
trueif this instance can convert the specified object type; otherwise,false.
ReadJson(JsonReader, Type, object?, JsonSerializer)
Reads the JSON representation of the object.
public override object? ReadJson(JsonReader reader, Type objectType, object? existingValue, JsonSerializer serializer)
Parameters
readerJsonReaderThe Newtonsoft.Json.JsonReader to read from.
objectTypeTypeType of the object.
existingValueobjectThe existing value of object being read.
serializerJsonSerializerThe calling serializer.
Returns
- object
The object value.
WriteJson(JsonWriter, object?, JsonSerializer)
Writes the JSON representation of the object.
public override void WriteJson(JsonWriter writer, object? value, JsonSerializer serializer)
Parameters
writerJsonWriterThe Newtonsoft.Json.JsonWriter to write to.
valueobjectThe value.
serializerJsonSerializerThe calling serializer.