Class DexConnectorJsonConverter
Converter for Dex connectors.
Namespace: Neon.Kube.Resources.JsonConverters
Assembly: Neon.Kube.Resources.dll
Syntax
public class DexConnectorJsonConverter : JsonConverter<IV1DexConnector>
Methods
CanConvert(Type)
Determines whether the specified type can be converted.
Declaration
public override bool CanConvert(Type objectType)
Parameters
Type | Name | Description |
---|---|---|
Type | objectType |
Returns
Type | Description |
---|---|
bool |
Overrides
Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
Reads and converts the JSON to type IV1DexConnector.
Declaration
public override IV1DexConnector Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
Utf8JsonReader | reader | The reader. |
Type | typeToConvert | The type to convert. |
JsonSerializerOptions | options | An object that specifies serialization options to use. |
Returns
Type | Description |
---|---|
IV1DexConnector | The converted value. |
Overrides
Write(Utf8JsonWriter, IV1DexConnector, JsonSerializerOptions)
Writes a specified value as JSON.
Declaration
public override void Write(Utf8JsonWriter writer, IV1DexConnector value, JsonSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
Utf8JsonWriter | writer | The writer to write to. |
IV1DexConnector | value | The value to convert to JSON. |
JsonSerializerOptions | options | An object that specifies serialization options to use. |