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>)
                ));
 }
Ejemplo n.º 2
0
 private DependencyGraphObject(string version, PluginObject pluginObject, DependenciesObject dependenciesObject)
 {
     Version = version;
     Plugin = pluginObject;
     Dependencies = dependenciesObject;
 }
 private DependencyGraphObject(string version, PluginObject pluginObject, DependenciesObject dependenciesObject)
 {
     Version      = version;
     Plugin       = pluginObject;
     Dependencies = dependenciesObject;
 }