public static ResultForRoot FromJson(JObject json)
        {
            var result = new ResultForRoot(
                RootPosition.FromJson(json["position"].Value <JObject>()));

            foreach (Select select in SelectHelper.Values)
            {
                var selectStr = select.Stringify();
                if (json.ContainsKey(selectStr))
                {
                    result.ResultsBySelect.Add(select, SelectResult.FromJson(json[selectStr].Value <JObject>()));
                }
            }

            if (json.ContainsKey("retractions"))
            {
                foreach ((string key, var value) in json["retractions"].Value <JObject>())
                {
                    var entries = SegregatedEntries.FromJson(value.Value <JObject>());
                    result.Retractions.Add(key, entries);
                }
            }

            return(result);
        }
 public ResultForRoot(RootPosition position)
 {
     this.Position        = position;
     this.ResultsBySelect = new Dictionary <Select, SelectResult>();
     this.Retractions     = new Dictionary <string, SegregatedEntries>();
 }