public static ListAllCategoryResponse Unmarshall(UnmarshallerContext context)
{
ListAllCategoryResponse listAllCategoryResponse = new ListAllCategoryResponse();
listAllCategoryResponse.HttpResponse = context.HttpResponse;
listAllCategoryResponse.RequestId = context.StringValue("ListAllCategory.RequestId");
List<ListAllCategoryResponse.Category> categoryList = new List<ListAllCategoryResponse.Category>();
for (int i = 0; i < context.Length("ListAllCategory.CategoryList.Length"); i++) {
ListAllCategoryResponse.Category category = new ListAllCategoryResponse.Category();
category.CateId = context.StringValue("ListAllCategory.CategoryList["+ i +"].CateId");
category.CateName = context.StringValue("ListAllCategory.CategoryList["+ i +"].CateName");
category.ParentId = context.StringValue("ListAllCategory.CategoryList["+ i +"].ParentId");
category.Level = context.StringValue("ListAllCategory.CategoryList["+ i +"].Level");
categoryList.Add(category);
}
listAllCategoryResponse.CategoryList = categoryList;
return listAllCategoryResponse;
}