private List <IPropertyDefinition> ParsePropertyDefinitions(JsonElement propertydefinitions) { var parser = new PropertyDefinitionParser(); var list = parser.Parse(propertydefinitions); return(list.Cast <IPropertyDefinition>().ToList()); }
private Dictionary <string, IPropertyDefinition> ParsePropertyDefinitions(JsonElement propertydefinitions) { var dict = new Dictionary <string, IPropertyDefinition>(); var parser = new PropertyDefinitionParser(); var list = parser.Parse(propertydefinitions).Cast <IPropertyDefinition>().ToList(); foreach (var pd in list) { dict.Add(pd.Name, pd); } return(dict); }