Class RestExceptionJsonConverter
Represents a collection of serializable entries, organized by a string key and a list of SerializableManifestEntry as the value. This class extends Dictionary<TKey, TValue> to facilitate serialization and deserialization of migration manifest entries.
Inherited Members
Namespace: Tableau.Migration.JsonConverters
Assembly: Tableau.Migration.dll
Syntax
public class RestExceptionJsonConverter : JsonConverter<RestException>
Methods
Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
Reads and converts the JSON to type RestException.
Declaration
public override RestException 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 |
---|---|
RestException | A RestException object deserialized from JSON. |
Overrides
Write(Utf8JsonWriter, RestException, JsonSerializerOptions)
Writes a specified RestException object to JSON.
Declaration
public override void Write(Utf8JsonWriter writer, RestException value, JsonSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
Utf8JsonWriter | writer | The writer to serialize objects or value types. |
RestException | value | The RestException value to serialize. |
JsonSerializerOptions | options | Options to control the behavior during writing. |