Class DexConnectorConverter
Converter for Dex connectors.
Namespace: Neon.Kube.Resources.Dex
Assembly: Neon.Kube.Resources.dll
Syntax
public class DexConnectorConverter : JsonConverter
Methods
CanConvert(Type)
Determines whether this instance can convert the specified object type.
Declaration
public override bool CanConvert(Type objectType)
Parameters
Type | Name | Description |
---|---|---|
Type | objectType | Type of the object. |
Returns
Type | Description |
---|---|
bool |
|
Overrides
ReadJson(JsonReader, Type, object, JsonSerializer)
Returns the Dex connector from JSON read from a reader.
Declaration
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
Parameters
Type | Name | Description |
---|---|---|
JsonReader | reader | Specifies the source JSON reader. |
Type | objectType | Specifies the object type (ignored). |
object | existingValue | Specifies the existing value (ignored). |
JsonSerializer | serializer | Specifies the JSON serializer. |
Returns
Type | Description |
---|---|
object | The Dex connector. |
Overrides
WriteJson(JsonWriter, object, JsonSerializer)
Writes the connection information to a JSON writer.
Declaration
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
Parameters
Type | Name | Description |
---|---|---|
JsonWriter | writer | Specifies the target JSON writer. |
object | value | Specifies the connection object. |
JsonSerializer | serializer | Specifies the JSON serializer. |