private static DependencyGraphObject V1(Dictionary <string, object> deserialized) { // This is a naive implementation. Once a V2 is necessary, we can revisit this. return(new DependencyGraphObject( deserialized ["version"] as string, PluginObject.From(deserialized ["plugin"] as Dictionary <string, object>), DependenciesObject.From(deserialized ["dependencies"] as Dictionary <string, object>) )); }
private DependencyGraphObject(string version, PluginObject pluginObject, DependenciesObject dependenciesObject) { Version = version; Plugin = pluginObject; Dependencies = dependenciesObject; }