public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
ListXssMatchSetsResponse response = new ListXssMatchSetsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("NextMarker", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextMarker = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("XssMatchSets", targetDepth))
{
var unmarshaller = new ListUnmarshaller<XssMatchSetSummary, XssMatchSetSummaryUnmarshaller>(XssMatchSetSummaryUnmarshaller.Instance);
response.XssMatchSets = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}