public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
ListAttacksResponse response = new ListAttacksResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("AttackSummaries", targetDepth))
{
var unmarshaller = new ListUnmarshaller<AttackSummary, AttackSummaryUnmarshaller>(AttackSummaryUnmarshaller.Instance);
response.AttackSummaries = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("NextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}