Class VoiceStyleConverter
Inherited Members
JsonConverter.CanRead
JsonConverter.CanWrite
Namespace: Glitch9.AIDevKit
Assembly: Glitch9.AIDevKit.dll
Syntax
public class VoiceStyleConverter : JsonConverter<VoiceStyle>
Methods
| Edit this page View SourceParse(string)
Declaration
public static VoiceStyle Parse(string voiceTypeAsString)
Parameters
| Type | Name | Description |
|---|---|---|
| string | voiceTypeAsString |
Returns
| Type | Description |
|---|---|
| VoiceStyle |
ReadJson(JsonReader, Type, VoiceStyle, bool, JsonSerializer)
Reads the JSON representation of the object.
Declaration
public override VoiceStyle ReadJson(JsonReader reader, Type objectType, VoiceStyle existingValue, bool hasExistingValue, JsonSerializer serializer)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonReader | reader | The Newtonsoft.Json.JsonReader to read from. |
| Type | objectType | Type of the object. |
| VoiceStyle | 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 |
|---|---|
| VoiceStyle | The object value. |
Overrides
| Edit this page View SourceWriteJson(JsonWriter, VoiceStyle, JsonSerializer)
Writes the JSON representation of the object.
Declaration
public override void WriteJson(JsonWriter writer, VoiceStyle value, JsonSerializer serializer)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonWriter | writer | The Newtonsoft.Json.JsonWriter to write to. |
| VoiceStyle | value | The value. |
| JsonSerializer | serializer | The calling serializer. |