/// <summary> /// Deserialize the object /// </summary> public virtual void DeserializeJson(JToken inputObject) { if (inputObject == null || inputObject.Type == JTokenType.Null) { return; } var automaticValue = inputObject["automatic"]; if (automaticValue != null && automaticValue.Type != JTokenType.Null) { Automatic = (bool)automaticValue; } var excludePathsValue = inputObject["ExcludePaths"]; if (excludePathsValue != null && excludePathsValue.Type != JTokenType.Null) { var excludePaths = new ExcludePaths(); excludePaths.DeserializeJson(excludePathsValue); ExcludePaths = excludePaths; } var includePathsValue = inputObject["IncludePaths"]; if (includePathsValue != null && includePathsValue.Type != JTokenType.Null) { IncludePaths = (string)includePathsValue; } var indexingModeSequence = inputObject["indexingMode"]; if (indexingModeSequence != null && indexingModeSequence.Type != JTokenType.Null) { foreach (var indexingModeValue in (JArray)indexingModeSequence) { IndexingMode.Add((string)indexingModeValue); } } var indexTypeValue = inputObject["indexType"]; if (indexTypeValue != null && indexTypeValue.Type != JTokenType.Null) { IndexType = (string)indexTypeValue; } var numericPrecisionValue = inputObject["NumericPrecision"]; if (numericPrecisionValue != null && numericPrecisionValue.Type != JTokenType.Null) { NumericPrecision = (int)numericPrecisionValue; } var pathValue = inputObject["Path"]; if (pathValue != null && pathValue.Type != JTokenType.Null) { Path = (string)pathValue; } var stringPrecisionValue = inputObject["StringPrecision"]; if (stringPrecisionValue != null && stringPrecisionValue.Type != JTokenType.Null) { StringPrecision = (int)stringPrecisionValue; } }