internal static PathMode ToPathMode(JSONObject jsonObject)
        {
            var pathMode = new PathMode();

            var list = new List <PathModeObjectCollection>();

            foreach (var jsonValue in jsonObject["feedback"].AsArray)
            {
                list.Add(PathModeObjectCollection.ToObject(jsonValue.Value.AsObject));
            }

            pathMode.Feedback = list.ToArray();
            return(pathMode);
        }
Beispiel #2
0
        internal static PathMode ToPathMode(JsonObject jsonObject)
        {
            var pathMode = new PathMode();

            var list = new List <PathModeObjectCollection>();

            foreach (var jsonValue in jsonObject.GetNamedArray("feedback", new JsonArray()))
            {
                list.Add(PathModeObjectCollection.ToObject(jsonValue.GetObject()));
            }

            pathMode.Feedback = list.ToArray();
            return(pathMode);
        }