public static RootModel DeserializeObject(JToken token) { RootSerializer serializer = new RootSerializer(); var model = serializer.Deserialize(token); return(model); }
public object Load(string path, Type type) { JToken data = DataSerialization.FromFile(path); var serializer = new RootSerializer(); var model = serializer.Deserialize(data); return(new ContentCachedPrefab(model)); }