Class PredictionRequestConverter
Inherited Members
JsonConverter.CanRead
JsonConverter.CanWrite
Namespace: Glitch9.AIDevKit.Google
Assembly: Glitch9.AIDevKit.Provider.Google.dll
Syntax
public class PredictionRequestConverter : JsonConverter<PredictionRequest>
Methods
| Edit this page View SourceReadJson(JsonReader, Type, PredictionRequest, bool, JsonSerializer)
Reads the JSON representation of the object.
Declaration
public override PredictionRequest ReadJson(JsonReader reader, Type objectType, PredictionRequest existingValue, bool hasExistingValue, JsonSerializer serializer)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonReader | reader | The Newtonsoft.Json.JsonReader to read from. |
| Type | objectType | Type of the object. |
| PredictionRequest | existingValue | The existing value of object being read. If there is no existing value then |
| bool | hasExistingValue | The existing value has a value. |
| JsonSerializer | serializer | The calling serializer. |
Returns
| Type | Description |
|---|---|
| PredictionRequest | The object value. |
Overrides
JsonConverter<PredictionRequest>.ReadJson(JsonReader, Type, PredictionRequest, bool, JsonSerializer)
|
Edit this page
View Source
WriteJson(JsonWriter, PredictionRequest, JsonSerializer)
Writes the JSON representation of the object.
Declaration
public override void WriteJson(JsonWriter writer, PredictionRequest value, JsonSerializer serializer)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonWriter | writer | The Newtonsoft.Json.JsonWriter to write to. |
| PredictionRequest | value | The value. |
| JsonSerializer | serializer | The calling serializer. |