public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
GetAccountSettingsResponse response = new GetAccountSettingsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("AccountLimit", targetDepth))
{
var unmarshaller = AccountLimitUnmarshaller.Instance;
response.AccountLimit = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("AccountUsage", targetDepth))
{
var unmarshaller = AccountUsageUnmarshaller.Instance;
response.AccountUsage = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}