Class TextToSpeechVoiceNameStringConverter
- Namespace
- Uralstech.UCloud.TextToSpeech
Converter to convert TextToSpeechVoiceName to a string and vice-versa.
public class TextToSpeechVoiceNameStringConverter : JsonConverter<TextToSpeechVoiceName>
- Inheritance
-
objectTextToSpeechVoiceNameStringConverter
Methods
ReadJson(JsonReader, Type, TextToSpeechVoiceName, bool, JsonSerializer)
public override TextToSpeechVoiceName ReadJson(JsonReader reader, Type objectType, TextToSpeechVoiceName existingValue, bool hasExistingValue, JsonSerializer serializer)
Parameters
reader
JsonReaderobjectType
TypeexistingValue
TextToSpeechVoiceNamehasExistingValue
boolserializer
JsonSerializer
Returns
WriteJson(JsonWriter, TextToSpeechVoiceName, JsonSerializer)
public override void WriteJson(JsonWriter writer, TextToSpeechVoiceName value, JsonSerializer serializer)
Parameters
writer
JsonWritervalue
TextToSpeechVoiceNameserializer
JsonSerializer