예제 #1
0
        public override dynamic CreateFromJSON(string value)
        {
            if (value.Contains($"{Name}."))
            {
                return(GetValue(value.Replace($"{Name}.", "")).Value);
            }

            return(Stored.CreateFromJSON(value));
        }
예제 #2
0
        public override dynamic CreateFromJSON(string value)
        {
            var arr  = (JArray)JsonConvert.DeserializeObject(value);
            var data = new List <dynamic>();

            foreach (var var in arr)
            {
                data.Add(Stored.CreateFromJSON(JsonConvert.SerializeObject(var)));
            }
            return(data);
        }