public static ListCustomImagesResponse Unmarshall(UnmarshallerContext context)
        {
            ListCustomImagesResponse listCustomImagesResponse = new ListCustomImagesResponse();

            listCustomImagesResponse.HttpResponse = context.HttpResponse;
            listCustomImagesResponse.RequestId    = context.StringValue("ListCustomImages.RequestId");

            List <ListCustomImagesResponse.ListCustomImages_ImageInfo> listCustomImagesResponse_images = new List <ListCustomImagesResponse.ListCustomImages_ImageInfo>();

            for (int i = 0; i < context.Length("ListCustomImages.Images.Length"); i++)
            {
                ListCustomImagesResponse.ListCustomImages_ImageInfo imageInfo = new ListCustomImagesResponse.ListCustomImages_ImageInfo();
                imageInfo.ImageId         = context.StringValue("ListCustomImages.Images[" + i + "].ImageId");
                imageInfo.ImageName       = context.StringValue("ListCustomImages.Images[" + i + "].ImageName");
                imageInfo.ImageOwnerAlias = context.StringValue("ListCustomImages.Images[" + i + "].ImageOwnerAlias");
                imageInfo.Description     = context.StringValue("ListCustomImages.Images[" + i + "].Description");

                ListCustomImagesResponse.ListCustomImages_ImageInfo.ListCustomImages_BaseOsTag baseOsTag = new ListCustomImagesResponse.ListCustomImages_ImageInfo.ListCustomImages_BaseOsTag();
                baseOsTag.OsTag        = context.StringValue("ListCustomImages.Images[" + i + "].BaseOsTag.OsTag");
                baseOsTag.Platform     = context.StringValue("ListCustomImages.Images[" + i + "].BaseOsTag.Platform");
                baseOsTag.Version      = context.StringValue("ListCustomImages.Images[" + i + "].BaseOsTag.Version");
                baseOsTag.Architecture = context.StringValue("ListCustomImages.Images[" + i + "].BaseOsTag.Architecture");
                imageInfo.BaseOsTag    = baseOsTag;

                listCustomImagesResponse_images.Add(imageInfo);
            }
            listCustomImagesResponse.Images = listCustomImagesResponse_images;

            return(listCustomImagesResponse);
        }
        public static ListCustomImagesResponse Unmarshall(UnmarshallerContext _ctx)
        {
            ListCustomImagesResponse listCustomImagesResponse = new ListCustomImagesResponse();

            listCustomImagesResponse.HttpResponse = _ctx.HttpResponse;
            listCustomImagesResponse.RequestId    = _ctx.StringValue("ListCustomImages.RequestId");

            List <ListCustomImagesResponse.ListCustomImages_ImageInfo> listCustomImagesResponse_images = new List <ListCustomImagesResponse.ListCustomImages_ImageInfo>();

            for (int i = 0; i < _ctx.Length("ListCustomImages.Images.Length"); i++)
            {
                ListCustomImagesResponse.ListCustomImages_ImageInfo imageInfo = new ListCustomImagesResponse.ListCustomImages_ImageInfo();
                imageInfo.Uid               = _ctx.StringValue("ListCustomImages.Images[" + i + "].Uid");
                imageInfo.ImageId           = _ctx.StringValue("ListCustomImages.Images[" + i + "].ImageId");
                imageInfo.ImageName         = _ctx.StringValue("ListCustomImages.Images[" + i + "].ImageName");
                imageInfo.ImageOwnerAlias   = _ctx.StringValue("ListCustomImages.Images[" + i + "].ImageOwnerAlias");
                imageInfo.Description       = _ctx.StringValue("ListCustomImages.Images[" + i + "].Description");
                imageInfo.Status            = _ctx.StringValue("ListCustomImages.Images[" + i + "].Status");
                imageInfo.ProductCode       = _ctx.StringValue("ListCustomImages.Images[" + i + "].ProductCode");
                imageInfo.SkuCode           = _ctx.StringValue("ListCustomImages.Images[" + i + "].SkuCode");
                imageInfo.PricingCycle      = _ctx.StringValue("ListCustomImages.Images[" + i + "].PricingCycle");
                imageInfo.PostInstallScript = _ctx.StringValue("ListCustomImages.Images[" + i + "].PostInstallScript");
                imageInfo.Size              = _ctx.IntegerValue("ListCustomImages.Images[" + i + "].Size");

                ListCustomImagesResponse.ListCustomImages_ImageInfo.ListCustomImages_BaseOsTag baseOsTag = new ListCustomImagesResponse.ListCustomImages_ImageInfo.ListCustomImages_BaseOsTag();
                baseOsTag.OsTag        = _ctx.StringValue("ListCustomImages.Images[" + i + "].BaseOsTag.OsTag");
                baseOsTag.Platform     = _ctx.StringValue("ListCustomImages.Images[" + i + "].BaseOsTag.Platform");
                baseOsTag.Version      = _ctx.StringValue("ListCustomImages.Images[" + i + "].BaseOsTag.Version");
                baseOsTag.Architecture = _ctx.StringValue("ListCustomImages.Images[" + i + "].BaseOsTag.Architecture");
                imageInfo.BaseOsTag    = baseOsTag;

                ListCustomImagesResponse.ListCustomImages_ImageInfo.ListCustomImages_OsTag osTag = new ListCustomImagesResponse.ListCustomImages_ImageInfo.ListCustomImages_OsTag();
                osTag.OsTag        = _ctx.StringValue("ListCustomImages.Images[" + i + "].OsTag.OsTag");
                osTag.BaseOsTag    = _ctx.StringValue("ListCustomImages.Images[" + i + "].OsTag.BaseOsTag");
                osTag.Platform     = _ctx.StringValue("ListCustomImages.Images[" + i + "].OsTag.Platform");
                osTag.Version      = _ctx.StringValue("ListCustomImages.Images[" + i + "].OsTag.Version");
                osTag.Architecture = _ctx.StringValue("ListCustomImages.Images[" + i + "].OsTag.Architecture");
                imageInfo.OsTag    = osTag;

                listCustomImagesResponse_images.Add(imageInfo);
            }
            listCustomImagesResponse.Images = listCustomImagesResponse_images;

            return(listCustomImagesResponse);
        }