public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
ViewBillingResponse response = new ViewBillingResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("BillingRecords", targetDepth))
{
var unmarshaller = new ListUnmarshaller<BillingRecord, BillingRecordUnmarshaller>(BillingRecordUnmarshaller.Instance);
response.BillingRecords = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("NextPageMarker", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextPageMarker = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}