public static IndexSpec[] JsonToIndexSpecCollection(string json)
        {
            var jarray             = JArray.Parse(json);
            List <IndexSpec> specs = new List <IndexSpec>();

            foreach (JObject next in jarray)
            {
                var indexSpec = new IndexSpec(next.ExtractValue <string>("path"), new SmartStoreType(next.ExtractValue <string>("type")));
                specs.Add(indexSpec);
            }
            return(specs.ToArray());
        }
 public IndexSpec[] GetSoupIndexSpecs(string soupName)
 {
     return(IndexSpec.ConvertToHybridIndexSpecs(NativeSmartStore.GetSoupIndexSpecs(soupName)));
 }
 public void RegisterSoup(String soupName, [ReadOnlyArray()] IndexSpec[] indexSpecs)
 {
     NativeSmartStore.RegisterSoup(soupName, IndexSpec.ConvertToSdkIndexSpecs(indexSpecs));
 }