Class Result.ResultConverter
- Namespace
- Styra.Opa.OpenApi.Models.Components
- Assembly
- Styra.Opa.dll
public class Result.ResultConverter : JsonConverter
- Inheritance
-
JsonConverterResult.ResultConverter
- 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
true
if 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
objectType
TypeType of the object.
Returns
- bool
true
if 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
reader
JsonReaderThe Newtonsoft.Json.JsonReader to read from.
objectType
TypeType of the object.
existingValue
objectThe existing value of object being read.
serializer
JsonSerializerThe 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
writer
JsonWriterThe Newtonsoft.Json.JsonWriter to write to.
value
objectThe value.
serializer
JsonSerializerThe calling serializer.