/// <summary> /// Deserialize the object /// </summary> public static IList<ProductCategoryDTO> DeserializeJson(JToken inputObject) { IList<ProductCategoryDTO> deserializedObject = new List<ProductCategoryDTO>(); foreach (JToken iListValue in ((JArray)inputObject)) { ProductCategoryDTO productCategoryDTO = new ProductCategoryDTO(); productCategoryDTO.DeserializeJson(iListValue); deserializedObject.Add(productCategoryDTO); } return deserializedObject; }
/// <summary> /// Deserialize the object /// </summary> public static IList <ProductCategoryDTO> DeserializeJson(JToken inputObject) { IList <ProductCategoryDTO> deserializedObject = new List <ProductCategoryDTO>(); foreach (JToken iListValue in ((JArray)inputObject)) { ProductCategoryDTO productCategoryDTO = new ProductCategoryDTO(); productCategoryDTO.DeserializeJson(iListValue); deserializedObject.Add(productCategoryDTO); } return(deserializedObject); }