/// <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;
 }
Exemplo n.º 2
0
        /// <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);
        }