Class LdJsonConverters.EvaluationErrorKindConverter
The JSON converter for EvaluationErrorKind.
Inheritance
LdJsonConverters.EvaluationErrorKindConverter
Inherited Members
Namespace: LaunchDarkly.Sdk.Json
Assembly: LaunchDarkly.CommonSdk.dll
Syntax
public sealed class LdJsonConverters.EvaluationErrorKindConverter : JsonConverter<EvaluationErrorKind>
Constructors
EvaluationErrorKindConverter()
Declaration
public EvaluationErrorKindConverter()
Methods
Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
Read and convert the JSON to T.
Declaration
public override EvaluationErrorKind Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| Utf8JsonReader | reader | The Utf8JsonReader to read from. |
| Type | typeToConvert | The Type being converted. |
| JsonSerializerOptions | options | The JsonSerializerOptions being used. |
Returns
| Type | Description |
|---|---|
| EvaluationErrorKind | The value that was converted. |
Overrides
Remarks
A converter may throw any Exception, but should throw
ReadJsonValue(ref Utf8JsonReader)
Declaration
public static EvaluationErrorKind ReadJsonValue(ref Utf8JsonReader reader)
Parameters
| Type | Name | Description |
|---|---|---|
| Utf8JsonReader | reader |
Returns
| Type | Description |
|---|---|
| EvaluationErrorKind |
Write(Utf8JsonWriter, EvaluationErrorKind, JsonSerializerOptions)
Write the value as JSON.
Declaration
public override void Write(Utf8JsonWriter writer, EvaluationErrorKind value, JsonSerializerOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| Utf8JsonWriter | writer | The Utf8JsonWriter to write to. |
| EvaluationErrorKind | value | The value to convert. Note that the value of HandleNull determines if the converter handles null values. |
| JsonSerializerOptions | options | The JsonSerializerOptions being used. |
Overrides
JsonConverter<EvaluationErrorKind>.Write(Utf8JsonWriter, EvaluationErrorKind, JsonSerializerOptions)
Remarks
A converter may throw any Exception, but should throw
WriteJsonValue(EvaluationErrorKind, Utf8JsonWriter)
Declaration
public static void WriteJsonValue(EvaluationErrorKind instance, Utf8JsonWriter writer)
Parameters
| Type | Name | Description |
|---|---|---|
| EvaluationErrorKind | instance | |
| Utf8JsonWriter | writer |