Method ReadJson
- Namespace
- Bonsai.ML.HiddenMarkovModels.Observations
- Assembly
- Bonsai.ML.HiddenMarkovModels.dll
ReadJson(JsonReader, Type, ObservationModelType, bool, JsonSerializer)
Reads the JSON representation of the object.
public override ObservationModelType ReadJson(JsonReader reader, Type objectType, ObservationModelType existingValue, bool hasExistingValue, JsonSerializer serializer)
Parameters
readerJsonReaderThe Newtonsoft.Json.JsonReader to read from.
objectTypeTypeType of the object.
existingValueObservationModelTypeThe existing value of object being read. If there is no existing value then
nullwill be used.hasExistingValueboolThe existing value has a value.
serializerJsonSerializerThe calling serializer.
Returns
- ObservationModelType
The object value.