public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
PutLogEventsResponse response = new PutLogEventsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("nextSequenceToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextSequenceToken = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("rejectedLogEventsInfo", targetDepth))
{
var unmarshaller = RejectedLogEventsInfoUnmarshaller.Instance;
response.RejectedLogEventsInfo = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}