Class FailedJobExceptionJsonConverter
Provides a custom JSON converter for FailedJobException objects, allowing for custom serialization and deserialization logic.
Inherited Members
Namespace: Tableau.Migration.JsonConverters
Assembly: Tableau.Migration.dll
Syntax
public class FailedJobExceptionJsonConverter : JsonConverter<FailedJobException>
Methods
Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
Reads and converts the JSON to type FailedJobException.
Declaration
public override FailedJobException Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
Utf8JsonReader | reader | The reader to deserialize objects or value types. |
Type | typeToConvert | The type of object to convert. |
JsonSerializerOptions | options | Options to control the behavior during reading. |
Returns
Type | Description |
---|---|
FailedJobException | A FailedJobException object deserialized from JSON. |
Overrides
Write(Utf8JsonWriter, FailedJobException, JsonSerializerOptions)
Writes a specified FailedJobException object to JSON.
Declaration
public override void Write(Utf8JsonWriter writer, FailedJobException value, JsonSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
Utf8JsonWriter | writer | The writer to serialize objects or value types. |
FailedJobException | value | The FailedJobException value to serialize. |
JsonSerializerOptions | options | Options to control the behavior during writing. |