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
reader
JsonReaderThe Newtonsoft.Json.JsonReader to read from.
objectType
TypeType of the object.
existingValue
ObservationModelTypeThe existing value of object being read. If there is no existing value then
null
will be used.hasExistingValue
boolThe existing value has a value.
serializer
JsonSerializerThe calling serializer.
Returns
- ObservationModelType
The object value.