public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { GetLogEventsResponse response = new GetLogEventsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("events", targetDepth)) { var unmarshaller = new ListUnmarshaller<OutputLogEvent, OutputLogEventUnmarshaller>(OutputLogEventUnmarshaller.Instance); response.Events = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("nextBackwardToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextBackwardToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("nextForwardToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextForwardToken = unmarshaller.Unmarshall(context); continue; } } return response; }