public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
ScanProvisionedProductsResponse response = new ScanProvisionedProductsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("NextPageToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextPageToken = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ProvisionedProducts", targetDepth))
{
var unmarshaller = new ListUnmarshaller<ProvisionedProductDetail, ProvisionedProductDetailUnmarshaller>(ProvisionedProductDetailUnmarshaller.Instance);
response.ProvisionedProducts = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}